@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
10 lines • 727 B
TypeScript
import { FlagView } from '../../spec/flag_view.ts';
import { LineFacts, type FileStat, type PathSpec, type ReadStreamFn } from '../../../types.ts';
import type { CommandFnResult, Context } from '../../config.ts';
export declare function fileGeneric(paths: PathSpec[], ctx: Context, stat: (p: PathSpec) => Promise<FileStat>, stream: (p: PathSpec) => AsyncIterable<Uint8Array>, readRange?: ReadStreamFn<[PathSpec, number, number]> | null): Promise<CommandFnResult>;
/**
* A file line describes a link itself unless the last of `-L` and `-h` is
* `-L` (file 5.46). Mirrors Python's `facts`.
*/
export declare function facts(fl: FlagView, _operands: readonly (string | PathSpec)[]): LineFacts;
//# sourceMappingURL=file.d.ts.map