/** * Machine-readable error codes. Branch on `error.code` rather than parsing * messages — useful for programmatic recovery (including by LLM agents). */ export type ErrorCode = 'BQL' | 'CONNECTION' | 'TIMEOUT'; /** Raised when the BrowserQL server returns GraphQL errors. */ export declare class BrowserQLError extends Error { readonly code: ErrorCode; readonly errors: Array<{ message: string; }>; constructor(errors: Array<{ message: string; }>); } /** Raised when the WebSocket connection fails, drops, or is unavailable. */ export declare class ConnectionError extends Error { readonly code: ErrorCode; constructor(message: string); } /** Raised when an operation exceeds its timeout. */ export declare class TimeoutError extends Error { readonly code: ErrorCode; /** The operation that timed out (truncated GraphQL query), when known. */ readonly operation?: string; /** The timeout that was exceeded, in milliseconds, when known. */ readonly timeoutMs?: number; constructor(message: string, context?: { operation?: string; timeoutMs?: number; }); } //# sourceMappingURL=errors.d.ts.map