import type { FsCondition } from '@struktoai/mirage-core/errors/index'; export declare const ENOENT = 2; export declare const EIO = 5; export declare const EACCES = 13; export declare const EEXIST = 17; export declare const EINVAL = 22; export declare const ENOTDIR = 20; export declare const EISDIR = 21; export declare const EROFS = 30; export declare const ENOTEMPTY = 66; export declare const EXDEV = 18; /** * Map a mirage-native error onto a positive POSIX errno. * * Mirrors Python's `mirage.fuse.errors.classify_error` so both languages * report the same errno for the same backend failure. The naming lives in * core's `classify` (shared with the wasi shim and the monty encoders); * this adapter only renders the condition in host numbers. A stamped code * outside the vocabulary is passed through in the host's own numbering * (Python's raw OSError.errno passthrough), and the message needles are a * last resort for unstamped errors, not a classification channel. */ export declare function classifyErrno(err: unknown): number; /** Same classification, negated for `@zkochan/fuse-native` callbacks. */ export declare function classifyError(err: unknown): number; /** * Build an error carrying a POSIX code, so the mount core can signal a * specific errno without importing any adapter's numbering. */ export declare function errnoError(code: FsCondition, message: string): Error; //# sourceMappingURL=errors.d.ts.map