import type { ResolvedConfig } from "../config/config"; import { type PdsClient } from "../client/types"; export type CommandContext = { client: PdsClient; createClient: (config: ResolvedConfig) => PdsClient; config: ResolvedConfig; configRoot?: string; env: Record; readStdin: () => Promise; emitJsonlEvent?: (event: unknown) => void; notice?: (text: string) => void; waitNotice?: (text: string) => void; openUrl?: (url: string) => void | Promise; sleep?: (ms: number) => Promise; }; export declare function dispatchCommand(commandPath: string[], commandArgs: string[], context: CommandContext): Promise; export declare function validateCommandOptionPreflight(commandPath: string[], commandArgs: string[]): void;