import { useApiStore } from '@/stores/api'; export interface HttpClient { withBaseUrl(url: string): Omit; get(url: string): Promise; post(url: string, body?: any, signal?: AbortSignal): Promise; put(url: string, body?: any): Promise; patch(url: string, body?: any): Promise; delete(url: string, body?: any): Promise; errorHandler: (error: any) => Promise; onError: (handler: (error: any) => Promise) => void; } export declare const HTTP_TIMEOUT = 30000; /** * Deprecates all Axios usage using built-in fetch method. * Provides retry capability with 401. * with JSON serialization */ export declare function defineApi(factory: (urls: ReturnType['backendUrls'], client: HttpClient) => Fn): () => Fn;