import type { RuntimeAgentHandoff, RuntimeAgentProgress } from "./runtime/agent-runner.js"; import type { AgentProgress } from "./agent-execution.js"; import type { LiveSessionHandoff, WorkflowAgentMessage, WorkflowAgentSession, WorkflowAgentSessionEvent } from "./types.js"; export declare function normalizePiMessage(value: unknown): WorkflowAgentMessage | undefined; export declare function normalizePiSessionEvent(value: unknown): WorkflowAgentSessionEvent | undefined; export declare function isTurnBoundaryStart(type: string): boolean; export declare function isTurnBoundaryEnd(type: string): boolean; export declare function isTurnEnd(type: string): boolean; export declare function createRuntimeHandoffAdapter(handoff: LiveSessionHandoff): RuntimeAgentHandoff; export interface PiRuntimeProgressObservation { readonly event: WorkflowAgentSessionEvent; readonly progress: RuntimeAgentProgress; readonly report: boolean; readonly persist: boolean; } export interface PiRuntimeSessionAdapter { readonly handoff: RuntimeAgentHandoff; observe(event: WorkflowAgentSessionEvent): PiRuntimeProgressObservation | undefined; snapshot(persist: boolean): RuntimeAgentProgress; dispose(): void; } export declare function createPiRuntimeSessionAdapter(session: WorkflowAgentSession, handoff: LiveSessionHandoff, clock?: () => number): PiRuntimeSessionAdapter; export declare function runtimeProgressToAgentProgress(value: RuntimeAgentProgress): AgentProgress;