/** Machine-readable conversion failure kind, published as `error.code`. */ export type ConvertErrorCode = 'unsupported' | 'malformed' | 'encrypted' | 'resourceLimit' | 'missingPart' | 'io'; /** Why a conversion could not produce a useful result. */ export declare class ConvertError extends Error { readonly code: ConvertErrorCode; readonly part: string | undefined; readonly detail: string | undefined; readonly limit: string | undefined; private constructor(); static unsupported(what: string): ConvertError; static malformed(detail: string): ConvertError; static malformedPart(part: string, detail: string): ConvertError; static encrypted(): ConvertError; static resourceLimit(limit: string, detail: string): ConvertError; static missingPart(part: string): ConvertError; static io(err: unknown): ConvertError; /** True for errors that must abort even when a part is optional. */ isFatal(): boolean; }