@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
11 lines • 708 B
TypeScript
import type { TiDBFilesystemAccessor } from '../../accessor/tidb_filesystem.ts';
import type { FsError } from '../../errors/types.ts';
import { type PathSpec } from '../../types.ts';
/**
* The errno a failed download answers with, null for any other failure.
* drive9 answers 404 for a directory as for a missing path, and 422 for a
* file in the extent layout, whose blocks only its FUSE client reads.
*/
export declare function readError(accessor: TiDBFilesystemAccessor, path: PathSpec, exc: unknown): Promise<FsError | null>;
export declare function read(accessor: TiDBFilesystemAccessor, path: PathSpec, offset?: number, size?: number | null): Promise<Uint8Array>;
//# sourceMappingURL=read.d.ts.map