/** * Public SDK errors. The Effect core fails on a typed `Schema.TaggedError` channel; the facade maps * every tagged failure onto one of these PLAIN `Error` subclasses (a single `_tag` switch) so the * public, Promise-based surface never leaks Effect internals. Consumers `catch` ordinary `Error`s. */ /** Base class for every error the SDK throws. */ export declare class SealantError extends Error { readonly name: string; /** Stable, machine-readable code for branching on the failure. */ readonly code: string; constructor(message: string, options?: { readonly code?: string; readonly cause?: unknown; }); } /** A typed control/transport failure from the workspace runtime daemon. */ export declare class SealantRuntimeError extends SealantError { readonly name = "SealantRuntimeError"; constructor(message: string, options?: { readonly code?: string; readonly cause?: unknown; }); } /** A control-plane API request failed (HTTP-level or typed API error). */ export declare class SealantApiError extends SealantError { readonly name = "SealantApiError"; /** HTTP status, when the failure came from a response. */ readonly status?: number; /** * The stable reason the control plane gave in the error's body, when it gave one (`home-held`, * `connected-account-missing`, `connected-account-invalid`, `user-unsupported`, …). `code` is the * error's type (`WorkspaceConflictError`); branch on this one. */ readonly reason?: string; /** * The connected account's provider a `connected-account-missing` or `connected-account-invalid` * reason is about (`claude`, `codex`, `github`). */ readonly provider?: string; constructor(message: string, options?: { readonly code?: string; readonly status?: number; readonly reason?: string; readonly provider?: string; readonly cause?: unknown; }); } /** The requested operation is part of the public surface but not yet implemented in this slice. */ export declare class SealantNotImplementedError extends SealantError { readonly name = "SealantNotImplementedError"; constructor(operation: string); }