export type CommandClassification = { readOnly: boolean; destructive: boolean; idempotent: boolean; }; /** * The subset of oclif's parse metadata we rely on: which flags were filled in from * `default:` rather than typed by the user. Pass `metadata.flags` from `this.parse()`. */ export type FlagMetadata = Record; export type CommandPreview = { command: string; description: string; changes: string[]; flags: Record; flagMetadata?: FlagMetadata; args?: Record; classification: CommandClassification; }; export type AgentPreviewResponse = { status: 'confirmation_required' | 'dry_run'; command: string; description: string; classification: CommandClassification; changes: string[]; confirmCommand: string; }; export declare function buildConfirmCommand(command: string, flags: Record, args?: Record, flagMetadata?: FlagMetadata): string; export declare function formatPreviewForAgent(preview: CommandPreview, status: 'confirmation_required' | 'dry_run'): AgentPreviewResponse; export declare function formatPreviewForTerminal(preview: CommandPreview): string;