import type { ByteSource } from '../../../../io/types.ts'; import type { MountRegistry } from '../../../mount/registry.ts'; import type { Session } from '../../../session/session.ts'; import type { BuiltinCall, ExecuteStringFn, Result } from '../types.ts'; /** * Run the `command` builtin (`command [-pVv] name [arg ...]`). * * Without `-v`/`-V` it runs the target ignoring any shell function of the * same name (bash's function bypass): the name is masked in the session * function table for the inner run so a shadowing function is skipped * while builtins and mount commands still resolve. Already expanded * operands are re-joined with shellJoin so they survive re-parsing as one * token each; the pipe stdin flows to the inner command. `-p` is accepted * but inert (mirage has no PATH) and the last of `-v`/`-V` wins. */ export declare function handleCommandBuiltin(executeFn: ExecuteStringFn, args: readonly string[], session: Session, registry: MountRegistry, stdin?: ByteSource | null): Promise; /** The `command` arm. */ export declare function commandBuiltin(call: BuiltinCall): Promise; //# sourceMappingURL=command.d.ts.map