export type Parsed = { flags: Record; positional: string[]; repeated: Record; switches: Set; }; /** A declared set tells valued flags from switches: a valued flag followed by a flag is refused, not eaten. Undeclared flags are kept for the command to name. */ export declare const parseArgv: (argv: readonly string[], valued: ReadonlySet, { dashed, own }?: { dashed?: ReadonlySet; own?: ReadonlySet; }) => Parsed; export declare const inputFor: (id: string, argv: readonly string[], cwd: string) => unknown;