/** * A custom error type for decoding, which stores the path at which a decode operation * may have failed. */ export declare class DecodeError extends Error { private baseMessage; path?: string[] | undefined; constructor(baseMessage: string, path?: string[] | undefined); /** * * @param path the link in the path at which this decode operation failed * @returns a new {@linkcode DecodeError} which */ extend(path: string | number): DecodeError; /** * * @param expected name of the expected type for the decoder * @param actual value which failed to decode * @returns a {@linkcode DecodeError} indicating a failure to decode due to mismatched types */ static forType: (expected: string, actual: unknown) => DecodeError; }