/** * Typed errors for the svgoo wasm bindings. * * Pure function + class — zero imports beyond the sibling types, so bundlers * can tree-shake it independently of the loader/engine (`core.js`). */ /** Where an `optimize` failure came from. */ export type SvgoErrorKind = "parse" | "config" | "internal"; /** Typed failure from the optimizer. */ export declare class SvgoError extends Error { readonly status: number; readonly kind: SvgoErrorKind; constructor(message: string, status?: number, kind?: SvgoErrorKind); } /** Map an engine message/status onto a {@link SvgoError}. */ export declare function classifyError(message: string, status: number): SvgoError; //# sourceMappingURL=errors.d.ts.map