import type { CumulativeMeter } from './cumulative-meter.js'; import type { StreamOptions } from './mailbox.js'; import type { TokenUsage } from './policy.js'; import { type FaultRestarts } from './sandbox-fault.js'; import type { SessionOpts } from './session-types.js'; /** One bounded SDK session for a role; resolves with the SDK's session_id (for * resuming on restart) and whether it ended by hitting the turn limit (so the * caller can push a continuation) when the stream ends (mailbox closed or * maxTurns reached). */ export declare function runOneSession(opts: SessionOpts, resume?: string, costTotals?: CumulativeMeter<{ usd: number; }>, progress?: { replied: boolean; }, tokenTotals?: CumulativeMeter, streamOpts?: StreamOptions, faultWatch?: ReturnType, cancelled?: AbortSignal): Promise<{ sessionId?: string; hitTurnLimit?: boolean; }>; //# sourceMappingURL=session-run.d.ts.map