/** * Formats unknown diagnostic values without letting failed property access or * coercion mask the original runtime failure. */ export declare function readDiagnosticProperty(value: unknown, property: PropertyKey): unknown; export declare function formatDiagnosticError(value: unknown): string; /** Extract an Error message or coerce a thrown value without masking the original failure. */ export declare function formatError(error: unknown): string; /** Preserve diagnostic stacks without allowing hostile thrown values to mask an error. */ export declare function formatErrorWithStack(error: unknown): string; /** Classify an error as a fetch/AbortSignal timeout. */ export declare function isTimeoutError(error: unknown): boolean; /** Classify a fetch Response as a redirect (3xx). */ export declare function isRedirectResponse(response: Response): boolean; /** Extract a human-readable message from an unknown caught value. */ export declare const errorMessage: typeof formatError;