export declare function setReceiptPathForTest(p: string | undefined): void; export declare function getReceiptPath(): string | undefined; export declare function recordPluginLoad(extra?: Record): void; export declare function recordRefreshStart(details?: Record): void; export declare function recordRefreshSuccess(details: { rotated_rt: boolean; set_succeeded: boolean; }): void; export declare function recordRefreshPersist(details: { set_succeeded: boolean; }): void; export declare function recordRefreshFailure(details?: { error_kind?: string; }): void; export declare function recordModelIdentity(source: string, fields: Record): void; export declare function recordToolLifecycle(details: { name: string; arg_sha256: string; arg_len: number; upstream_completed?: boolean; metadata_completed?: boolean; emitted_name: string; remapped: boolean; }): void; export declare function recordEndpointStatus(details: Record): void; export declare function sha256(s: string): string; /** * Append a debug payload to ~/.cache/chatgpt-web-opencode/debug.log when * CHATGPT_WEB_DEBUG=1. Bearer tokens, JWTs, and sk- keys are redacted; the log * rotates once (debug.log -> debug.log.1) past 16 MiB so it cannot grow * unbounded. Payloads still contain prompts and tool output by design — * debug mode is for local wire debugging only. */ export declare function debugDump(tag: string, payload: string): void; //# sourceMappingURL=diagnostics.d.ts.map