/** * Structured error types for occt-kernel-wasm. */ export type KernelErrorCode = 'INVALID_HANDLE' | 'SESSION_MISMATCH' | 'INVALID_PARAMS' | 'INVALID_CHECKPOINT' | 'OPERATION_FAILED' | 'IMPORT_FAILED' | 'EXPORT_FAILED' | 'NOT_INITIALIZED' | 'UNKNOWN'; /** Structured error returned by all kernel operations. */ export declare class KernelError extends Error { readonly code: KernelErrorCode; readonly detail: string; constructor(code: KernelErrorCode, detail: string); } /** @internal Parse a JSON error descriptor returned by the C++ kernel. */ export declare function parseNativeError(raw: unknown): KernelError;