/** * Paean API Client * HTTP client for communicating with the Paean AI backend */ import { type AxiosInstance } from 'axios'; export interface ApiError { error: string; message?: string; statusCode?: number; } export interface ApiResponse { success: boolean; data?: T; error?: string; message?: string; } /** * Create an authenticated API client * @param options - Configuration options * @param options.clearAuthOn401 - Whether to clear auth on 401 errors (default: true) */ export declare function createApiClient(options?: { clearAuthOn401?: boolean; }): AxiosInstance; /** * Create an unauthenticated API client (for login flows) */ export declare function createPublicApiClient(): AxiosInstance; /** * Get the authenticated API client singleton * @param options - Configuration options */ export declare function getApiClient(options?: { clearAuthOn401?: boolean; }): AxiosInstance; /** * Create a temporary API client that doesn't clear auth on 401 * Useful for cleanup operations where 401 errors shouldn't invalidate the session */ export declare function createNonClearingApiClient(): AxiosInstance; /** * Get the public API client singleton */ export declare function getPublicApiClient(): AxiosInstance; /** * Reset the API clients (useful after login/logout) */ export declare function resetApiClients(): void; //# sourceMappingURL=client.d.ts.map