import { Storage, StorageKey, DiagnosticSnapshot, ErrorContext, TransportType } from '@tezos-x/octez.connect-types'; import { BeaconError } from '../errors/BeaconError'; /** * Storage keys that contain sensitive information and should be filtered out */ export declare const SENSITIVE_STORAGE_KEYS: StorageKey[]; /** * Gathers diagnostic information from storage for error reporting. * Automatically filters sensitive keys for privacy. * * @param storage - The storage instance to read from * @param transport - Optional transport type being used * @returns Promise resolving to diagnostic snapshot */ export declare function gatherDiagnostics(storage: Storage, transport?: TransportType): Promise; /** * Builds a complete error context from an error and storage state. * * @param error - The BeaconError or Error instance * @param storage - The storage instance to read diagnostic data from * @param transport - Optional transport type being used * @returns Promise resolving to complete error context */ export declare function buildErrorContext(error: BeaconError | Error, storage: Storage, transport?: TransportType): Promise; /** * Serializes error context to formatted JSON string for copying. * * @param errorContext - The error context to serialize * @returns Formatted JSON string */ export declare function serializeErrorContext(errorContext: ErrorContext): string; /** * Copies error context to clipboard (browser only). * * @param errorContext - The error context to copy * @returns Promise resolving to true if successful, false otherwise */ export declare function copyErrorContextToClipboard(errorContext: ErrorContext): Promise;