import type { HarnessSession } from "#harness/types.js"; import type { InputRequest } from "#shared/input.js"; import type { JsonObject } from "#shared/json.js"; export { bumpSessionRuntimeUsageLimits } from "#harness/turn-tag-state.js"; export type SessionUsageLimitCheck = { readonly kind: "within"; } | { readonly kind: "ask"; readonly request: InputRequest; } | { readonly kind: "fail"; readonly code: string; readonly details: JsonObject; readonly message: string; }; /** Whether the session may call the model, may ask to continue, or must fail. */ export declare function checkSessionUsageLimit(input: { readonly canAsk: boolean; readonly session: HarnessSession; readonly turnSequence: number; }): SessionUsageLimitCheck;