UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

33 lines • 2.16 kB
import { type FileStat } from '../../types.ts'; import type { BuildTreeOptions, Effects, EmitStartPathOptions, FindEntry, PendingPrune, PredNode, PrintfKind } from './types.ts'; export declare function evaluate(node: PredNode, entry: FindEntry, effects: Effects): boolean; export declare function displayPath(prefix: string, key: string): string; export declare function bindTree(node: PredNode, prefix: string, root?: string, raw?: string): PredNode; export declare function treeHasAction(node: PredNode): boolean; export declare function treeHasPrune(node: PredNode): boolean; export declare function withoutPrune(node: PredNode): PredNode; export declare function prunedKeys(node: PredNode): string[]; /** Every `-prune` still waiting on a time test. */ export declare function pendingPrunes(node: PredNode): PendingPrune[]; export declare function settlePrunes(node: PredNode, mtimes: ReadonlyMap<string, number | null>): void; export declare function dropPruned(rows: string[], tree: PredNode, prefix?: string): string[]; export declare function settlePendingPrunes(node: PredNode, mtimeOf: (key: string) => Promise<number | null>): Promise<void>; export declare function treeHasEmpty(node: PredNode): boolean; export declare function keep(entry: FindEntry, tree: PredNode, minDepth: number | null | undefined, acts?: boolean): boolean; export declare function startBasename(virtual: string): string; export declare function emitStartPath(results: string[], startKey: string, startName: string, opts: EmitStartPathOptions): void; export declare function buildTree(opts: BuildTreeOptions): PredNode; export declare function argsToTree(options: { name?: string | null; iname?: string | null; pathPattern?: string | null; type?: string | null; nameExclude?: string | null; orNames?: string[] | null; empty?: boolean | null; tree?: PredNode | null; }): PredNode; export declare function unrespellRaw(row: string, virtual: string, raw: string): string; /** The one-letter kind a -printf %y/%Y directive renders for a stat. */ export declare function printfKind(st: FileStat): PrintfKind; //# sourceMappingURL=find_eval.d.ts.map