/** Describes a value the way Node's `ERR_INVALID_ARG_TYPE` messages do. */ export declare function determineSpecificType(value: unknown): string; declare abstract class CodedError extends Error { abstract readonly code: string; toString(): string; } declare abstract class CodedTypeError extends TypeError { abstract readonly code: string; toString(): string; } declare abstract class CodedRangeError extends RangeError { abstract readonly code: string; toString(): string; } export declare class AbortError extends Error { readonly code = "ABORT_ERR"; readonly name = "AbortError"; constructor(message?: string, options?: ErrorOptions); } /** * Combines two errors into an `AggregateError`, preferring `outerError`'s message and code. * Returns whichever error is present when only one is. */ export declare function aggregateTwoErrors(innerError: Error | null | undefined, outerError: Error): Error; export declare function aggregateTwoErrors(innerError?: Error | null, outerError?: Error | null): Error | null | undefined; export declare class ERR_INVALID_ARG_TYPE extends CodedTypeError { readonly code = "ERR_INVALID_ARG_TYPE"; constructor(name: string, expected: string | string[], actual: unknown); } export declare class ERR_INVALID_ARG_VALUE extends CodedTypeError { readonly code = "ERR_INVALID_ARG_VALUE"; constructor(name: string, value: unknown, reason?: string); } export declare class ERR_INVALID_RETURN_VALUE extends CodedTypeError { readonly code = "ERR_INVALID_RETURN_VALUE"; constructor(input: string, name: string, value: unknown); } export declare class ERR_MISSING_ARGS extends CodedTypeError { readonly code = "ERR_MISSING_ARGS"; constructor(...args: (string | string[])[]); } export declare class ERR_OUT_OF_RANGE extends CodedRangeError { readonly code = "ERR_OUT_OF_RANGE"; constructor(name: string, range: string, input: unknown); } export declare class ERR_UNKNOWN_ENCODING extends CodedTypeError { readonly code = "ERR_UNKNOWN_ENCODING"; constructor(encoding: unknown); } export declare class ERR_METHOD_NOT_IMPLEMENTED extends CodedError { readonly code = "ERR_METHOD_NOT_IMPLEMENTED"; constructor(method: string); } export declare class ERR_MULTIPLE_CALLBACK extends CodedError { readonly code = "ERR_MULTIPLE_CALLBACK"; constructor(); } export declare class ERR_ILLEGAL_CONSTRUCTOR extends CodedTypeError { readonly code = "ERR_ILLEGAL_CONSTRUCTOR"; constructor(); } export declare class ERR_UNHANDLED_ERROR extends CodedError { readonly code = "ERR_UNHANDLED_ERROR"; constructor(context?: unknown); } export declare class ERR_STREAM_ALREADY_FINISHED extends CodedError { readonly code = "ERR_STREAM_ALREADY_FINISHED"; constructor(method: string); } export declare class ERR_STREAM_CANNOT_PIPE extends CodedError { readonly code = "ERR_STREAM_CANNOT_PIPE"; constructor(); } export declare class ERR_STREAM_DESTROYED extends CodedError { readonly code = "ERR_STREAM_DESTROYED"; constructor(method: string); } export declare class ERR_STREAM_NULL_VALUES extends CodedTypeError { readonly code = "ERR_STREAM_NULL_VALUES"; constructor(); } export declare class ERR_STREAM_PREMATURE_CLOSE extends CodedError { readonly code = "ERR_STREAM_PREMATURE_CLOSE"; constructor(); } export declare class ERR_STREAM_PUSH_AFTER_EOF extends CodedError { readonly code = "ERR_STREAM_PUSH_AFTER_EOF"; constructor(); } export declare class ERR_STREAM_UNABLE_TO_PIPE extends CodedError { readonly code = "ERR_STREAM_UNABLE_TO_PIPE"; constructor(); } export declare class ERR_STREAM_UNSHIFT_AFTER_END_EVENT extends CodedError { readonly code = "ERR_STREAM_UNSHIFT_AFTER_END_EVENT"; constructor(); } export declare class ERR_STREAM_WRITE_AFTER_END extends CodedError { readonly code = "ERR_STREAM_WRITE_AFTER_END"; constructor(); } export {};