/** * Base error class for all libeam errors. */ export declare class LibeamError extends Error { readonly code: string; readonly context?: Record | undefined; constructor(message: string, code: string, context?: Record | undefined); } /** * Error thrown when an actor cannot be found. */ export declare class ActorNotFoundError extends LibeamError { constructor(actorId: string, nodeId?: string); } /** * Error thrown when a registry lookup fails. */ export declare class RegistryLookupError extends LibeamError { constructor(name: string); } /** * Error thrown when an actor class is not registered. */ export declare class ActorClassNotRegisteredError extends LibeamError { constructor(className: string); } /** * Error thrown when an operation times out. */ export declare class TimeoutError extends LibeamError { constructor(operation: string, timeoutMs: number); } /** * Error thrown when the system is shutting down. */ export declare class SystemShuttingDownError extends LibeamError { constructor(operation: string); } /** * Error thrown when a transport operation fails. */ export declare class TransportError extends LibeamError { readonly originalCause?: Error; constructor(message: string, nodeId?: string, cause?: Error); } /** * Error thrown when a peer is not found. */ export declare class PeerNotFoundError extends LibeamError { constructor(nodeId: string); } export declare class NoRoleMatchError extends LibeamError { constructor(role: string, localNodeId?: string); } /** * Error thrown when authentication fails. */ export declare class AuthenticationError extends LibeamError { constructor(reason: string, nodeId?: string); } /** * Error thrown when a cookie rotation state transition is invalid. */ export declare class CookieRotationError extends LibeamError { constructor(reason: string); } export declare class MailboxFullError extends LibeamError { constructor(actorId?: string); } /** * Error thrown when a DynamicSupervisor has reached its maxChildren limit. */ export declare class MaxChildrenError extends LibeamError { constructor(maxChildren: number); } //# sourceMappingURL=errors.d.ts.map