import { type AgentTool } from '@mariozechner/pi-agent-core'; import { AgentSession } from '@mariozechner/pi-coding-agent'; import { type TransientTurnContextLookup } from '@lobu/plugin-toolkit/pi-resources'; import type { AgentTurnInput } from './types.js'; /** Pi owns session state and lifecycle; Lobu supplies only admitted host capabilities. */ export declare function createNativeSession(input: AgentTurnInput, tools: AgentTool[], getTransientContext: TransientTurnContextLookup): AgentSession; /** * AgentSession processes Agent events asynchronously and can schedule a new * run after compaction. Observe its public lifecycle before disposing the * isolate; Agent.prompt()/waitForIdle() alone end before that work is done. * Retry and compaction decisions remain entirely inside the original Pi code. */ export declare function promptNativeSession(session: AgentSession, text: string, images?: AgentTurnInput['images']): Promise; export declare function nativeSessionJsonl(session: AgentSession): string; //# sourceMappingURL=native-session.d.ts.map