/** * @since 1.0.0 */ import type * as Cause from "effect/Cause"; import * as Schema from "effect/Schema"; /** * @since 1.0.0 * @category type ids */ export declare const WorkerErrorTypeId: unique symbol; /** * @since 1.0.0 * @category type ids */ export type WorkerErrorTypeId = typeof WorkerErrorTypeId; /** * @since 1.0.0 * @category predicates */ export declare const isWorkerError: (u: unknown) => u is WorkerError; declare const WorkerError_base: Schema.TaggedErrorClass; } & { reason: Schema.Literal<["spawn", "decode", "send", "unknown", "encode"]>; cause: typeof Schema.Defect; }>; /** * @since 1.0.0 * @category errors */ export declare class WorkerError extends WorkerError_base { /** * @since 1.0.0 */ readonly [WorkerErrorTypeId]: WorkerErrorTypeId; /** * @since 1.0.0 */ static readonly Cause: Schema.Schema, Schema.CauseEncoded>; /** * @since 1.0.0 */ static readonly encodeCause: (a: Cause.Cause) => Schema.CauseEncoded; /** * @since 1.0.0 */ static readonly decodeCause: (u: Schema.CauseEncoded) => Cause.Cause; /** * @since 1.0.0 */ get message(): string; } /** * @since 1.0.0 * @category errors */ export interface WorkerErrorFrom { readonly _tag: "WorkerError"; readonly reason: "spawn" | "decode" | "send" | "unknown" | "encode"; readonly cause: unknown; } export {}; //# sourceMappingURL=WorkerError.d.ts.map