import type { Model } from "../../types.js"; import type { RequestBody } from "./request-transformer.js"; /** * Set the process-wide default for requests that leave `codexAccessPrograms` * unset. Hosts call this from their settings so side calls that bypass a * session stream function still follow it; session requests pass their own * value, so concurrent sessions with different settings stay independent. */ export declare function configureCodexAccessPrograms(enabled: boolean): void; /** * Request Daybreak Blue on `body` when `requested` (else the process default) * allows it, `accountId` may use it on `model`, and no earlier rejection * dropped it. */ export declare function applyCodexAccessPrograms(body: RequestBody, model: Model<"openai-codex-responses">, accountId: string | undefined, requested: boolean | undefined): void; /** * Strip `access_programs` from `body` when `error` is the backend rejecting it, * remembering the drop for (account, model). Returns `true` when the caller * should replay the request; at most once per body, since the field is gone. */ export declare function dropRejectedCodexAccessPrograms(body: RequestBody, model: Model<"openai-codex-responses">, accountId: string | undefined, error: unknown): boolean;