import { OperationError } from "../operationError.js"; import { XYShapeError } from "../XYShape.js"; type SimpleError = { type: S; }; type StringError = { type: S; message: string; }; type ValueError = { type: S; value: V; }; export type DistError = SimpleError<"NotYetImplemented"> | SimpleError<"Unreachable"> | SimpleError<"DistributionVerticalShiftIsInvalid"> | SimpleError<"TooFewSamples"> | SimpleError<"TooFewSamplesForConversionToPointSet"> | StringError<"NonNumericInput"> | StringError<"ArgumentError"> | StringError<"SparklineError"> | StringError<"RequestedStrategyInvalidError"> | StringError<"LogarithmOfDistributionError"> | StringError<"OtherError"> | ValueError<"OperationError", OperationError> | ValueError<"XYShapeError", XYShapeError>; export declare function serializeDistError(err: DistError): SimpleError<"NotYetImplemented"> | SimpleError<"Unreachable"> | SimpleError<"DistributionVerticalShiftIsInvalid"> | SimpleError<"TooFewSamples"> | SimpleError<"TooFewSamplesForConversionToPointSet"> | StringError<"NonNumericInput"> | StringError<"ArgumentError"> | StringError<"SparklineError"> | StringError<"RequestedStrategyInvalidError"> | StringError<"LogarithmOfDistributionError"> | StringError<"OtherError"> | ValueError<"XYShapeError", XYShapeError> | { type: "OperationError"; value: { type: "DivisionByZeroError"; } | { type: "ComplexNumberError"; } | { type: "InfinityError"; } | { type: "NegativeInfinityError"; } | { type: "SampleMapNeedsNtoNFunction"; } | { type: "PdfInvalidError"; } | { readonly type: "OtherOperationError"; readonly value: string; }; }; export declare function deserializeDistError(data: ReturnType): DistError; export declare const tooFewSamplesForConversionToPointSet: () => DistError; export declare const distOperationError: (operationError: OperationError) => DistError; export declare const notYetImplemented: () => DistError; export declare const unreachableError: () => DistError; export declare const distributionVerticalShiftIsInvalid: () => DistError; export declare const operationDistError: (e: OperationError) => DistError; export declare const sparklineError: (e: string) => DistError; export declare const logarithmOfDistributionError: (e: string) => DistError; export declare const requestedStrategyInvalidError: (e: string) => DistError; export declare const otherError: (e: string) => DistError; export declare const argumentError: (e: string) => DistError; export declare const xyShapeDistError: (e: XYShapeError) => DistError; export declare const distErrorToString: (e: DistError) => string; export {}; //# sourceMappingURL=DistError.d.ts.map