@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
13 lines • 783 B
TypeScript
import type { ValueType } from '../../../../commands/spec/types.ts';
export declare const TEST_NAMES: ReadonlySet<string>;
/**
* Which of a test's words name a file, as the kinds a classifier reads, by
* test's own reading of them (`flatShape`): the operand of a file operator
* (`-e x`) and both sides of `-nt`, `-ot` and `-ef` are paths, however they
* are spelled, so a relative name a rule covers is judged as `stat` judges
* it; every other word is left to the shape rules. `name` is `test`, `[` or
* `[[`; `words` are the test's words after its name: `]` included for `[`,
* one leaf's for `[[`. Mirrors Python's file_operands.
*/
export declare function fileOperands(name: string, words: readonly string[]): (ValueType | null)[];
//# sourceMappingURL=operands.d.ts.map