import type { MakeRequired } from '../common'; export * from './api'; export * from './utils/constants'; export * from './utils/types'; export { calculateUserDefaultAvatarIndex } from './utils/utils'; export interface ApiHandlerOptions { baseUrl?: string; domain?: string; token: string; debug?: boolean; agent?: string; smartBucket?: boolean; workerProxy?: boolean; type?: 'Bearer' | 'Bot'; } export interface ApiHandlerInternalOptions extends MakeRequired { userAgent: string; } export interface RawFile { contentType?: string; data: Buffer | Uint8Array | boolean | number | string; key?: string; name: string; } export interface ApiRequestOptions { body?: Record; query?: Record; files?: RawFile[]; auth?: boolean; reason?: string; route?: `/${string}`; unshift?: boolean; appendToFormData?: boolean; token?: string; } export type HttpMethods = 'GET' | 'DELETE' | 'PUT' | 'POST' | 'PATCH';