import { type FileAction, type SWDRunResult } from '../swd.js'; import { type ActionRiskVerdict } from '../security-policy.js'; export interface ExternalAgentInput { actions: FileAction[]; request?: string; summary?: string; agent?: { id?: string; model?: string; }; metadata?: Record; } export interface RejectedAction { path: string; operation: FileAction['operation']; risk: ActionRiskVerdict['risk']; reason: string; } export interface SWDApplyResult { ok: boolean; mode: 'apply' | 'dry-run'; actionCount: number; approvedCount: number; rejected: RejectedAction[]; result: SWDRunResult; receipt?: { id: string; path: string; }; agent: { id: string; model: string; }; } interface SWDCommandOptions { stdin?: boolean; file?: string; json?: boolean; dryRun?: boolean; strict?: boolean; rollback?: boolean; receipt?: boolean; allowRisky?: boolean; request?: string; summary?: string; agent?: string; model?: string; } interface ApplyExternalAgentOptions { rawInput: string; dryRun?: boolean; strict?: boolean; enableRollback?: boolean; saveReceipt?: boolean; allowRisky?: boolean; request?: string; summary?: string; agentId?: string; modelId?: string; } export declare function parseExternalAgentInput(rawInput: string): ExternalAgentInput; export declare function applyExternalAgentActions(options: ApplyExternalAgentOptions): Promise; export declare function swdCommand(action: string | undefined, options: SWDCommandOptions): Promise; export {}; //# sourceMappingURL=swd.d.ts.map