UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

13 lines • 1.12 kB
import { type FindOptions } from '../../../core/generic/find.ts'; import { LineFacts, PathSpec, type FileStat } from '../../../types.ts'; import type { CommandFnResult, Context } from '../../config.ts'; import { FlagView } from '../../spec/flag_view.ts'; export declare function findGeneric(paths: PathSpec[], texts: string[], ctx: Context, find: (root: PathSpec, options: FindOptions) => Promise<string[]>, stat?: (spec: PathSpec) => Promise<FileStat>, dirEmpty?: (spec: PathSpec) => Promise<boolean>, unreadable?: () => string[], unstatted?: () => [string, unknown][], missingStat?: (spec: PathSpec) => Promise<FileStat>, loops?: () => [string, string][], stopped?: () => string[]): Promise<CommandFnResult>; /** * A find line walks every mount below its start points, and follows a start * point that is a link under `-H` or `-L`: the last of `-P`, `-H` and `-L` * typed before the first start point wins, where GNU reads them (findutils * 4.10). Mirrors Python's `facts`. */ export declare function facts(fl: FlagView, _operands: readonly (string | PathSpec)[]): LineFacts; //# sourceMappingURL=find.d.ts.map