UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

17 lines • 1.1 kB
import { IOResult } from '../../../io/types.ts'; import type { FileStat, JsonValue, PathSpec } from '../../../types.ts'; import type { CommandFnResult, Context } from '../../config.ts'; import { type FlagValue } from '../../spec/types.ts'; export declare const OPTIONS: readonly string[]; /** * cut's engine config, refused by the engine before any operand is resolved: * every option as typed, in typed order, a switch as the empty text. A * `--whitespace-delimited` without `=` goes as null, since * `--whitespace-delimited=` reads as a prefix of `trimmed`. Mirrors Python's * `cut_config`. */ export declare function cutConfig(bag: Record<string, FlagValue>): Record<string, JsonValue> | IOResult; /** Run cut over resolved operands with `cutConfig`'s config, read before the * operands were. Mirrors Python's `cut_generic`. */ export declare function cutGeneric(config: Record<string, JsonValue>, paths: PathSpec[], ctx: Context, stream: (path: PathSpec) => AsyncIterable<Uint8Array>, stat: (path: PathSpec) => Promise<FileStat>): Promise<CommandFnResult>; //# sourceMappingURL=cut.d.ts.map