export declare abstract class BaseOperationError { abstract type: T; abstract toString(): string; serialize(): { type: T; }; } export declare class DivisionByZeroError extends BaseOperationError<"DivisionByZeroError"> { readonly type: "DivisionByZeroError"; toString(): string; } export declare class ComplexNumberError extends BaseOperationError<"ComplexNumberError"> { readonly type = "ComplexNumberError"; toString(): string; } export declare class InfinityError extends BaseOperationError<"InfinityError"> { readonly type = "InfinityError"; toString(): string; } export declare class NegativeInfinityError extends BaseOperationError<"NegativeInfinityError"> { readonly type = "NegativeInfinityError"; toString(): string; } export declare class SampleMapNeedsNtoNFunction extends BaseOperationError<"SampleMapNeedsNtoNFunction"> { readonly type = "SampleMapNeedsNtoNFunction"; toString(): string; } export declare class PdfInvalidError extends BaseOperationError<"PdfInvalidError"> { readonly type = "PdfInvalidError"; toString(): string; } export declare class OtherOperationError extends BaseOperationError<"OtherOperationError"> { value: string; readonly type = "OtherOperationError"; constructor(value: string); toString(): string; serialize(): { readonly type: "OtherOperationError"; readonly value: string; }; } export type OperationError = DivisionByZeroError | ComplexNumberError | InfinityError | NegativeInfinityError | SampleMapNeedsNtoNFunction | PdfInvalidError | OtherOperationError; type SerializedOperationError = ReturnType; export declare function deserializeOperationError(serialized: SerializedOperationError): OperationError; export {}; //# sourceMappingURL=operationError.d.ts.map