import { AxiosInstance, AxiosRequestConfig } from "axios"; import type { NetworkError, CachedAPIResponse, CacheOptions, OnDemandCitationFetchApiResponse } from "../types/onDemandApi.types"; export { NetworkErrorType } from "../types/onDemandApi.types"; export type { NetworkError, ApiError, StandardAPIResponse, CachedAPIResponse, OnDemandCitationFetchResponse, OnDemandCitationFetchApiResponse, CacheOptions, } from "../types/onDemandApi.types"; export declare const DEFAULT_CACHE_TTL: number; export declare const fetchOnDemandCitation: (requestId: string, citationType: string, citationNumber: number, llmFormattedResponse: string, token: string, baseUrl: string, citationAssistantProcessingName: string, orgName: string, citationAgentName: string, isEcgPayloadActive: boolean, ecg_agent_name: string, customCitationId: string, plan_id: string, ui_chat_history?: any) => Promise>; export declare const getOnDemandCitation: (requestId: string, citationType: string, citationNumber: number, token: string, baseUrl: string) => Promise; export declare const createApiInstance: (baseURL?: string, timeout?: number) => AxiosInstance; export declare const generateCacheKey: (method: string, url: string, params?: any) => string; export declare const makeApiRequest: (method: string, url: string, options?: { data?: any; config?: AxiosRequestConfig; baseURL?: string; }) => Promise<{ responseData: T | null; error: NetworkError | null; }>; export declare const makeApiRequestWithTTLCache: >(method: string, url: string, options?: { data?: any; params?: any; config?: AxiosRequestConfig | undefined; errorMessage?: string | undefined; baseURL?: string | undefined; cacheOption?: CacheOptions | undefined; shouldCache?: ((responseData: NonNullable) => boolean) | undefined; } | undefined) => Promise; //# sourceMappingURL=onDemandApi.d.ts.map