/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ export type DumpMode = 'now' | 'status' | 'on' | 'error' | 'off'; export interface DumpRequest { url: string; method: string; headers?: Record; body?: unknown; } export interface DumpResponse { status: number; headers?: Record; body?: unknown; } export interface DumpData { provider: string; timestamp: string; request: DumpRequest; response?: DumpResponse; } /** * Redacts sensitive information from request data */ export declare function redactSensitiveData(request: DumpRequest): DumpRequest; /** * Dumps context (request and response) to a file in ~/.llxprt/dumps/ * Returns the filename of the created dump file */ export declare function dumpContext(request: DumpRequest, response: DumpResponse | undefined, provider: string): Promise; /** * Checks if dumping should occur based on mode and error status */ export declare function shouldDump(mode: DumpMode | undefined, isError: boolean): boolean;