import { CommandSpec } from './types.ts'; export declare const SHELL_SPECS: Readonly<{ xargs: CommandSpec; timeout: CommandSpec; read: CommandSpec; mapfile: CommandSpec; }>; /** * Result of a strict leading-option scan for a shell builtin. * * Wrapper builtins (xargs, timeout) stop option parsing at the first * operand, since everything after it belongs to the wrapped command; * the mount-command parser scans the whole line and warns-ignores * unknown flags, which is wrong on both counts here. The builtin owns * the error message and exit code (GNU shapes differ per tool), so * the parse only reports what went wrong. */ export interface ShellParse { flags: Record; operands: string[]; invalid: string | null; needsValue: string | null; } /** Scan leading options the way getopt does for a shell builtin. */ export declare function parseShellOptions(spec: CommandSpec, argv: readonly string[]): ShellParse; //# sourceMappingURL=shell.d.ts.map