import { joinManaged } from '../mesh/managed-presence.js'; import { runAgentExec } from '../orgrt/agent-exec.js'; import type { Command, CommandContext } from '../types.js'; /** Parse a duration flag: plain number = seconds; `45s`/`10m`/`2h` suffixes. */ export declare function parseDuration(raw: unknown, flag: string): number | undefined; /** Parse --allow-bash-prefix "a,b,c" into a trimmed, non-empty string array. */ export declare function parseBashPrefixesFlag(raw: unknown): string[] | undefined; /** Parse repeatable --env KEY=V into a record. */ export declare function parseEnvFlags(raw: unknown): Record; /** * Usage error for a `--sandbox` value (#396), or undefined when it is valid. * Per-runtime support is checked later, in the engine (`unsupported`). */ export declare function sandboxFlagError(raw: unknown, access: string): string | undefined; /** Usage error for a `--sandbox-fallback` value (#482; ignored without `--sandbox`). */ export declare function sandboxFallbackFlagError(raw: unknown): string | undefined; /** Exported for unit tests (returns the exit code; no process.exit here — see execCommand.action). */ export declare function runExec(ctx: CommandContext, overrides: Partial[0]>, mesh?: { join?: typeof joinManaged; }): Promise; export declare const execCommand: Command; export declare const scanCommand: Command; export declare const testCommand: Command; //# sourceMappingURL=agent-exec.d.ts.map