/** * How `discover` reads an operand as said, before it reads anything else: what * a host asks to decide which of the tree and the names it reads first. */ /** One or several values, said as a string or an array. */ export declare function listArg(input: Readonly>, name: string): readonly string[]; export declare function textArg(input: Readonly>, name: string): string | undefined; /** `spec#name`, split at the last `#` past the first character; a `#` with nothing after it is refused. */ export declare function nameOf(written: string): { readonly spec: string; readonly name: string | undefined; }; /** Whether a file is in the tree: the tree itself, or a set of its paths. */ export interface Holds { has(file: string): boolean; } /** * The file and name of an import operand naming a name out of one of `files`, * which the source index answers without the names; anything else is * undefined. A `#` with nothing after it is refused, as `nameOf` refuses it. */ export declare function fileNamed(written: string, files: Holds): { readonly file: string; readonly name: string; } | undefined; /** * Whether a call names an operand asked of the source index's names, so a host * names the index it read the tree from. A question about paths alone reads the * tree and nothing else. An import of a name out of * one of `files`, the tree's, is answered off the source index as `importsOf` * routes it, so it reads no names; without the tree, every import is taken to. */ export declare function readsNames(input: Readonly>, files?: Holds): boolean; //# sourceMappingURL=discover-operands.d.ts.map