import { type ExtraBodyDroppedSeatInput } from "./extra-body-dropped-seat.js";
import type { RunState } from "./contracts.js";
import type { LegFrameOffer } from "./leg-frame.js";
import { type CapabilityWithheldRecord } from "./capability-withheld-seat.js";
export interface RunBrainSinksInput {
    /** borrowed-readonly — the run's one drained-leg frame offer (the identity-wiring lane's): every `status` frame goes out through it. */
    offerLegFrame: LegFrameOffer;
    /** borrowed-readonly — the run's mutable state, read for the telemetry frames' tracer and task id. */
    rs: RunState;
    /** borrowed-readonly — the run's event-identity mint (stamped on every status frame). */
    ident: () => {
        eventId: string;
        parentToolCallId?: string;
        sourceTaskId?: string;
    };
    /** borrowed-readonly — the notice sink and the leg's ids; the third and fourth sinks' announcers are minted from them. */
    notice: ExtraBodyDroppedSeatInput;
    /** borrowed-mutable — the session's announced record: the fifth sink's announcer says a withheld capability once per session. */
    announced: CapabilityWithheldRecord;
}
export interface RunBrainSinksResult {
    /** Compose the two brain ALS sinks around a brain-driving call. */
    withBrainSinks: <T>(fn: () => Promise<T>) => Promise<T>;
    /** Compose the three leg-wide request sinks (the extraBody strip, the credential-origin refusal, the withheld capability) around the whole leg. */
    withLegRequestSinks: <T>(fn: () => Promise<T>) => Promise<T>;
}
export declare function runBrainSinks(input: RunBrainSinksInput): RunBrainSinksResult;
