import { type AguiEvent, type ProposalNotification } from "./types.ts"; import type { Interrupt, ResumeEntry } from "@ag-ui/core"; import type { ClientInteractionProjection, ClientInteractionResolution, ProblemDetails } from "@plurnk/plurnk-contracts"; export declare const proposalToolCallId: (logEntryId: number) => string; export declare const logEntryIdFromToolCallId: (toolCallId: string) => number | null; export declare const proposalToolName: (_op: string) => string; export declare const proposalToolCall: (p: ProposalNotification) => AguiEvent[]; export declare const proposalInterrupt: (logEntryId: number) => Interrupt; export interface Resolution { logEntryId: number; decision: "accept" | "reject" | "cancel"; body?: string; } export declare const resolutionFromResume: (entry: ResumeEntry) => Resolution | null; export declare const interactionToolCallId: (interactionId: number) => string; export declare const interactionIdFromToolCallId: (toolCallId: string) => number | null; export declare const interactionToolCall: (interaction: ClientInteractionProjection) => AguiEvent[]; export declare const interactionInterrupt: (interaction: ClientInteractionProjection) => Interrupt; export interface InteractionResolution { interactionId: number; resolution: ClientInteractionResolution; } export declare const interactionResolutionFromResume: (entry: ResumeEntry) => InteractionResolution | null; export interface AguiPlusState { providers?: Array<{ alias: string; model: string; active: boolean; inputCapacity: number | null; }>; workspace?: { id: number; name: string; projectRoot?: string | null; budget?: number | null; }; workspaces?: Array<{ id: number; name: string; }>; constraints?: Array<{ effect: string; glob: string; }>; } export interface AguiBudgetState { readonly curationWeight: number | null; readonly curationBudget: number | null; readonly contextTokens: number | null; readonly contextCapacity: number | null; } export declare const stateSnapshot: (s: AguiPlusState) => AguiEvent; export declare const stateDelta: (patches: Array<{ op: string; path: string; value?: unknown; }>) => AguiEvent; export interface ActionRequest { kind: string; params: Record; } export declare const parseAction: (forwardedProps: unknown) => ActionRequest | null; export type ActionOutcome = { ok: true; result?: unknown; } | { ok: false; problem: ProblemDetails; }; export declare const actionResult: (kind: string, outcome: ActionOutcome) => AguiEvent; //# sourceMappingURL=AguiPlus.d.ts.map