import { SessionTokenBudget } from '../store/budget/index.js'; import type { AgentInput, BaseAgentConfig } from '../types/agent/base.js'; import type { SessionId, TurnId } from '../types/ids/index.js'; /** The turn a composite agent is about to run, which its ledger is keyed by. */ export interface AgentTurn { readonly sessionId: SessionId; readonly turnId: TurnId; } /** * Resolve one authority before a composite agent constructs its scheduler. * * An inherited budget (a delegated child's reservation, or a host's) is bound * to this turn with `bindTurn`, so its spend is attributed to the child * session's turn while it stays keyed by the root turn that opened the * ledger. A root turn opens a ledger of its own, keyed by * `(sessionId, turnId)`: a new turn gets a new ledger and its own limit. */ export declare function resolveAgentBudget(input: AgentInput, config: BaseAgentConfig, turn: AgentTurn): Promise; //# sourceMappingURL=budget.d.ts.map