export type emmiterChannels = 'requestSuccess' | 'requestFail' | 'terminateRequestRetry' | 'endpointUpdated'; export type Config = { endpoint: string; language: 'fa' | 'en'; requestRetries?: number; userAgent?: string; version: string; debug?: boolean; }; export type API = { config: Config; store(): Promise; emmiter(channel: emmiterChannels, message?: string): void; log(type: 'warn' | 'error' | 'info', ...msg: string[]): void; useTransferEndpoint(endpoints: { location: string; host: string; }[]): Promise; }; type SuccessResponse = { status_code: number; success: true; message?: string; data: Data; SEO?: Record; }; type ErrorResponse = { status_code: number; success: false; message?: string; errors: any[]; }; export type BaseResponse = SuccessResponse | ErrorResponse; export {};