import { type ByteSource, IOResult } from '../../io/types.ts'; import type { Resource } from '../../resource/base.ts'; import { PathSpec } from '../../types.ts'; import type { MountEntry } from '../mount/mount.ts'; import { type MountRegistry } from '../mount/registry.ts'; import { ExecutionNode } from '../types.ts'; import type { FlagValue } from '../../commands/spec/types.ts'; import type { RunSingle } from '../../commands/builtin/generic/crossmount/types.ts'; import type { NamespaceView, StatPath } from '../../ops/types.ts'; type Result = [ByteSource | null, IOResult, ExecutionNode]; export declare function shouldFanOut(cmdName: string, paths: readonly PathSpec[], flagKwargs: Record, registry: MountRegistry): boolean; export declare function filterUnderPrefixes(stdout: ByteSource, descendantPrefixes: readonly string[], cmdName: string): Promise; export declare function fanOutTraversal(cmdName: string, paths: readonly PathSpec[], texts: readonly string[], flagKwargs: Record, registry: MountRegistry, primaryMount: MountEntry, cwd: string, cmdStr: string, stdin: ByteSource | null, ensureOpen: ((resource: Resource) => Promise) | undefined, ns?: NamespaceView, statPath?: StatPath | null): Promise; export declare function runWithFanout(runSingle: RunSingle, registry: MountRegistry, cwd: string, ns: NamespaceView | undefined, ensureOpen: ((resource: Resource) => Promise) | undefined, statPath?: StatPath | null): RunSingle; export {}; //# sourceMappingURL=fanout.d.ts.map