import type { SessionAuthContext } from "#channel/types.js"; import type { InputRequest } from "#shared/input.js"; import type { SessionStateMap } from "#harness/types.js"; /** Who approved each of the `approved` calls, by call id. */ export declare function approversOf(approved: readonly InputRequest[], state: SessionStateMap | undefined): Readonly>; /** * Records who approved each of the `approved` calls, so each runs as its approver while the rest * of the turn keeps the turn's own caller. */ export declare function setApprovedCallCallers(approved: readonly InputRequest[], state: SessionStateMap | undefined): void; /** Runs `fn` as the call's approver when `callId` is an approved call; otherwise as is. */ export declare function runAsApprover(callId: string | undefined, fn: () => T): T; /** A streaming call's body runs on each `next()`, so each one runs as the approver too. */ export declare function iterateAsApprover(callId: string | undefined, iterable: AsyncIterable): AsyncIterable;