import type { Session, SessionEvent, SessionEventType } from "@opengeni/sdk"; /** Events that say whether a chat's live context is a compaction checkpoint. */ export declare const CONTEXT_CHECKPOINT_EVENT_TYPES: SessionEventType[]; /** * Whether the newest context checkpoint among `events` is a compaction * (true), a clear (false), or absent (null). In a Codex remote_v2 chat every * compaction is Codex's own, which other models cannot read. */ export declare function latestCheckpointIsCompaction(events: readonly SessionEvent[]): boolean | null; /** * A chat Codex compacted is about to run on another provider's model, which * rebuilds its earlier messages from a fresh summary. Chats without a Codex * compaction switch with nothing to rebuild and need no heads-up. */ export declare function needsModelSwitchHeadsUp(input: { codexCompactionMode: Session["codexCompactionMode"] | null | undefined; codexCompacted: boolean; model: string | null | undefined; }): boolean; export declare function modelSwitchHeadsUpText(modelLabel: string): string; /** * When this chat's Codex usage limit resets, from its newest usage-limit * event: the capacity wait it is parked on, or the turn the limit stopped. * Null when that event names no reset. */ export declare function codexUsageResetsAt(events: readonly SessionEvent[]): string | null; /** * Whether the newest capacity wait is a usage wait, not one that needs a * person to act (a turned-off or ineligible account, a model not allowed). */ export declare function codexWaitIsUsageLimit(events: readonly SessionEvent[]): boolean; /** * "Continue at reset" for a chat blocked on its Codex usage limit. A turn the * limit refused waits for capacity and continues at the reset unless the chat * is paused. A chat the limit stopped (failed or idle) is not waiting. */ export declare function codexUsageContinuesAtReset(input: { status: Session["status"]; paused: boolean; }): boolean; /** * Whether the usage-limit line describes this chat. A Codex usage wait with * a known reset is a usage limit. A wait with no reset in sight (for example * no ChatGPT plan connected any more) or one that needs a person to act keeps * the server's own wait message, which names the actual cause. */ export declare function codexUsageNoticeApplies(input: { status: Session["status"]; resetsAt: string | null; usageWait: boolean; }): boolean; /** * What switching "Continue at reset" to `next` does: pause or resume the * waiting chat, or run a stopped chat's work again on its Codex model, which * waits for the reset (resuming a paused chat first, so that work isn't held * back). Null when nothing changes. */ export declare function codexUsageContinueAtResetAction(input: { status: Session["status"]; paused: boolean; next: boolean; }): "pause" | "resume" | "run_on_codex" | "resume_and_run_on_codex" | null; /** * "Resets at 14:05." the same day, "Resets Sat 14:05." within a week, else * with its date; plainly unknown without a reset time. */ export declare function codexUsageResetText(resetsAt: string | null, options?: { now?: Date; locale?: string; timeZone?: string; }): string;