/** Provider event semantics for ADR-115 / dynamic workflows. No model calls. */ export interface ManagedEvent { id: string; type: string; processed_at?: string | null; content?: Array<{ type: string; text?: string; }>; name?: string; input?: unknown; stop_reason?: { type: string; }; workflow_run_id?: string | null; session_thread_id?: string; result?: { type: string; } | string; [key: string]: unknown; } export interface EventPage { data: ManagedEvent[]; next_page?: string | null; } /** Validate untrusted pages before deriving lifecycle claims. */ export declare function eventPage(value: unknown): EventPage; /** Reads complete history, bounded and deduplicated. Cursor is opaque, never a URL. */ export declare function readManagedEvents(read: (query: string) => Promise, since?: string): Promise; /** Incremental reducer. Provider completion is always unverified. */ export declare class ManagedProgress { private seen; private text; private tools; private runs; private failures; private status; private stopReason; private cost; private since; private bytes; private finished; private interrupted; accept(events: ManagedEvent[]): void; watermark(): string | undefined; snapshot(): { assistantText: string; toolUses: { name: string; input: unknown; }[]; status: string; stopReason: string | null; eventCount: number; workflowRuns: { id: string; status: string; result?: string; }[]; openRuns: number; finished: boolean; interrupted: boolean; blocked: boolean; observedFailures: number; listCost: unknown; verification: "unverified"; needsThreadInspection: boolean; }; } /** Build only the supported configuration; do not pass arbitrary multiagent JSON. */ export declare function dynamicConfig(input: Record): { enabled: boolean; budget: { type: string; max_list_cost: { amount: string; currency: string; }; } | undefined; multiagent: { type: string; subagents: { type: string; }; workflows: { inline_agents?: { type: string; } | undefined; predefined_agents?: any[] | undefined; type: string; }; } | undefined; networking: { type: string; allowed_hosts: any[]; } | { type: {}; allowed_hosts?: undefined; }; }; //# sourceMappingURL=managed-workflows.d.ts.map