//#region src/errors.d.ts /** * The input was truncated, compared to the expected size. * In other words, an attempt was made to read past the end of the input. */ declare class TruncationError extends Error { readonly start: number; readonly requested: number; readonly size: number; /** * Create a truncation error. * * @param start The starting offset for the read. * @param requested The number of bytes requested. * @param size The total size of the input. */ constructor(start: number, requested: number, size: number); } /** * The input was longer than expected. */ declare class ExtraBytesError extends Error { readonly offset: number; readonly size: number; constructor(offset: number, size: number); } //#endregion export { ExtraBytesError, TruncationError };