import * as E from "../Either"; import * as FS from "../FreeSemigroup"; import type { Tree } from "../Tree"; import * as DE from "./DecodeError"; export interface ErrorInfo { name?: string; id?: string; message?: string; } export declare type DecodeError = FS.FreeSemigroup>; export declare const error: (actual: unknown, expected: string, info?: ErrorInfo | undefined) => DecodeError; export declare const success: (a: A) => E.Either; export declare const failure: ( actual: unknown, expected: string, info?: ErrorInfo | undefined ) => E.Either>, A>; export declare const toForest: (e: DecodeError) => ReadonlyArray>; export declare const draw: (e: DecodeError) => string; //# sourceMappingURL=decode-error.d.ts.map