@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
14 lines • 723 B
TypeScript
import type { FsCondition } from './types.ts';
export declare const WASI: Record<FsCondition, number>;
/** The preview1 wire number for a condition. */
export declare function wasiErrno(condition: FsCondition): number;
/**
* The preview1 wire number a thrown error renders as: the one rendering
* every runtime that answers in preview1 numbers shares. Naming is the
* shared classifier's. An error it does not name is EIO, which Python
* keeps for an unnamed OSError; Python answers EINVAL for anything else,
* a backend's bare ValueError, which has no class to tell apart here.
* Mirrors Python's `errors/wasi.errno_for`.
*/
export declare function errnoFor(err: unknown): number;
//# sourceMappingURL=wasi.d.ts.map