import type { AuthStorage } from "@gajae-code/ai/core"; export declare class KagiApiError extends Error { readonly statusCode?: number; constructor(message: string, statusCode?: number); } export interface KagiSearchOptions { limit?: number; sessionId?: string; signal?: AbortSignal; } export interface KagiSearchSource { title: string; url: string; snippet?: string; publishedDate?: string; } export interface KagiSearchResult { requestId: string; sources: KagiSearchSource[]; relatedQuestions: string[]; } export declare function findKagiApiKey(authStorage: AuthStorage, sessionId?: string, signal?: AbortSignal): Promise; export declare function searchWithKagi(query: string, options: KagiSearchOptions | undefined, authStorage: AuthStorage): Promise;