/**
 * This file contains utility functions for interacting with the Mintlify chat API.
 * The code was adapted from https://mintlify.com/docs/advanced/rest-api/overview#getting-started. The original source can be found at https://github.com/mintlify/discovery-api-example/tree/main/src/utils.
 */
export declare const createChat: () => Promise<string | undefined>;
export declare const generateResponse: ({ topicId, userQuery, onChunkReceived, }: {
    topicId: string;
    userQuery: string;
    onChunkReceived: (chunk: string, baseUrl?: string, finalChunk?: boolean) => void;
}) => Promise<void>;
export declare const handleAiChat: (onChunkReceived: (chunk: string, baseUrl?: string, finalChunk?: boolean) => void, userQuery: string, topicId?: string) => Promise<{
    id: string | null | undefined;
    error: string;
}>;
type ChunkMetadata = {
    id: string;
    link?: string;
    metadata?: Record<string, unknown>;
    chunk_html?: string;
};
export declare const generateDeeplink: (chunkMetadata: ChunkMetadata) => string;
export type Citation = {
    citationNumber: number;
    title: string;
    url: string;
    rootRecordId?: number;
    rootRecordType?: string;
};
export declare function getFormattedCitations(rawContent?: string): Citation[];
export declare function optionallyRemoveLeadingSlash(path: string): string;
export declare function optionallyAddLeadingSlash(path: string): string;
export declare function optionallyAddBaseUrl(baseUrl: string, url: string): string;
export {};
//# sourceMappingURL=util.d.ts.map