import type { Storage } from "@earendil-works/pi-durable"; import { AgentSession, type CreateAgentSessionOptions } from "@earendil-works/pi-coding-agent"; import { DurableAgent } from "./agent.js"; /** * Public-SDK host for a durable agent. AgentSession remains responsible for native * tool provenance/loadouts, extension tool hooks, request routing, and history. * Like createAgentSession, this does not bind extensions: the host calls * session.bindExtensions() with its mode/UI/error bindings before prompting. * Storage is borrowed; close settles this host but does not close its storage. */ export declare function createDurableAgentSession(options: CreateAgentSessionOptions & { storage: Storage; runId: string; fabricJournalDirectory?: string; }): Promise<{ session: AgentSession; agent: DurableAgent; close(): Promise; }>; //# sourceMappingURL=session.d.ts.map