interface WextsErrorOptions { code: string; message: string; cause?: unknown; suggestedFix?: string; docsSlug?: string; } declare class WextsError extends Error { readonly code: string; readonly suggestedFix?: string; readonly docsSlug?: string; constructor(options: WextsErrorOptions); get docsUrl(): string | undefined; } declare class WextsRpcError extends WextsError { constructor(options: Omit & { code?: string; }); } declare class WextsCodegenError extends WextsError { constructor(options: Omit & { code?: string; }); } declare class WextsRuntimeError extends WextsError { constructor(options: Omit & { code?: string; }); } declare class WextsSecurityError extends WextsError { constructor(options: Omit & { code?: string; }); } declare function formatWextsError(error: unknown): string; export { WextsError as W, WextsRpcError as a, WextsRuntimeError as b, WextsSecurityError as c, WextsCodegenError as d, type WextsErrorOptions as e, formatWextsError as f };