export declare const setAiFeatureBaseUrl: (newUrl: string) => void;
export declare const setAiFeatureDefaultHeaders: (headers: Object) => void;
export interface GetV1AiFeatureSummaryResponse {
    report_type: string;
    session_id: string;
    summary: string;
    flags: Array<{
        severity: string;
        message: string;
        metric: string;
    }>;
    recommendations: string[];
    charts: Array<{
        chart_type: string;
        title: string;
        labels: string[];
        datasets: Array<{
            label: string;
            values: number[];
        }>;
        currency: string;
        unit: string | null;
        center_text: string | null;
    }>;
    usage: {
        service: string;
        session_id: string;
        model: string;
        input_tokens: number;
        output_tokens: number;
        cost: number;
        currency: string;
    };
}
interface V1AiFeatureSummaryRequest {
    data?: any;
    report_type?: string;
    companyId?: string;
    'x-token'?: string;
    'x-timezone'?: string;
}
export interface PostV1AiFeatureChatResponse {
    reply: string;
    [key: string]: any;
}
interface V1AiFeatureChatRequest {
    session_id: string;
    query: string;
    'x-token'?: string;
    'x-timezone'?: string | number;
}
export declare const streamV1AiFeatureChat: (request: V1AiFeatureChatRequest, onToken: (token: string) => void, onDone: () => void, onError?: (message: string) => void, onOffTopic?: () => void) => Promise<void>;
export interface V1CopilotChatRequest {
    query: string;
    'x-token'?: string;
    'x-timezone'?: string | number;
}
export declare const streamV1CopilotChat: (request: V1CopilotChatRequest, onToken: (token: string) => void, onDone: () => void, onError?: () => void, onOffTopic?: () => void) => Promise<void>;
export interface SearchResult {
    id: string;
    source_id: number;
    doc_type: string;
    module: string;
    title: string;
    reference: string | null;
    status: string | null;
    date: string | null;
    amount: number | null;
    score: number;
    party_name: string | null;
    approval_status: string | null;
    transaction_type: string | null;
    email: string | null;
    phone: string | null;
    highlight: {
        title?: string[];
        text_content?: string[];
    };
}
export interface GetV1AiFeatureSearchQueryResponse {
    success: boolean;
    status_code: number;
    data: {
        results: SearchResult[];
        total: number;
        duration_ms: number;
    };
    pagination: Record<string, any>;
}
interface V1AiFeatureSearchQueryRequest {
    query: string;
    'x-token'?: string;
    'x-timezone'?: string;
}
export declare const postV1AiFeatureSearchQuery: (request: V1AiFeatureSearchQueryRequest) => Promise<GetV1AiFeatureSearchQueryResponse>;
export declare const postV1AiFeatureSummary: (request?: V1AiFeatureSummaryRequest) => Promise<GetV1AiFeatureSummaryResponse>;
export {};
