export declare const DEBUG_MESSAGE_PREFIX = "[opencode-antigravity-auth debug]"; export declare function isDebugEnabled(): boolean; export declare function isVerboseEnabled(): boolean; export declare function getLogFilePath(): string | undefined; export interface AntigravityDebugContext { id: string; streaming: boolean; startedAt: number; } interface AntigravityDebugRequestMeta { originalUrl: string; resolvedUrl: string; method?: string; headers?: HeadersInit; body?: BodyInit | null; streaming: boolean; projectId?: string; } interface AntigravityDebugResponseMeta { body?: string; note?: string; error?: unknown; headersOverride?: HeadersInit; } /** * Begins a debug trace for an Antigravity request, logging request metadata when debugging is enabled. */ export declare function startAntigravityDebugRequest(meta: AntigravityDebugRequestMeta): AntigravityDebugContext | null; /** * Logs response details for a previously started debug trace when debugging is enabled. */ export declare function logAntigravityDebugResponse(context: AntigravityDebugContext | null | undefined, response: Response, meta?: AntigravityDebugResponseMeta): void; export interface AccountDebugInfo { index: number; email?: string; family: string; totalAccounts: number; rateLimitState?: { claude?: number; gemini?: number; }; } export declare function logAccountContext(label: string, info: AccountDebugInfo): void; export declare function logRateLimitEvent(accountIndex: number, email: string | undefined, family: string, status: number, retryAfterMs: number, bodyInfo: { message?: string; quotaResetTime?: string; retryDelayMs?: number | null; reason?: string; }): void; export declare function logRateLimitSnapshot(family: string, accounts: Array<{ index: number; email?: string; rateLimitResetTimes?: { claude?: number; gemini?: number; }; }>): void; export declare function logResponseBody(context: AntigravityDebugContext | null | undefined, response: Response, status: number): Promise; export declare function logModelFamily(url: string, extractedModel: string | null, family: string): void; export declare function debugLogToFile(message: string): void; export {}; //# sourceMappingURL=debug.d.ts.map