/** * Error types for the concurrency module. * * @module bquery/concurrency */ import type { TaskWorkerErrorCode } from './types'; /** Base error for concurrency task failures. */ export declare class TaskWorkerError extends Error { /** Stable error code for programmatic handling. */ code: TaskWorkerErrorCode; constructor(message: string, code: TaskWorkerErrorCode, cause?: unknown); } /** Thrown when the environment cannot create inline Web Workers. */ export declare class TaskWorkerUnsupportedError extends TaskWorkerError { constructor(message?: string, cause?: unknown); } /** Thrown when the task handler or payload cannot be serialized safely. */ export declare class TaskWorkerSerializationError extends TaskWorkerError { constructor(message: string, cause?: unknown); } /** Thrown when a task exceeds its configured timeout. */ export declare class TaskWorkerTimeoutError extends TaskWorkerError { constructor(message: string, cause?: unknown); } /** Thrown when a task is aborted via `AbortSignal`. */ export declare class TaskWorkerAbortError extends TaskWorkerError { constructor(message?: string, cause?: unknown); } //# sourceMappingURL=errors.d.ts.map