/** * Whether a piece of per-turn grounding reached the model. `empty` is a real * answer (nothing relevant); `timed_out` and `failed` mean the model is * working without context it would normally have, and must be told so. */ export type ContextStatus = "ok" | "empty" | "timed_out" | "failed"; export declare function isContextStatus(value: unknown): value is ContextStatus; /** * The status an app hook reported, from an object with a `status` field. * Undefined means the hook reported nothing; a status this code doesn't know * is a hook bug, so it counts as `failed` rather than as silence. */ export declare function readReportedContextStatus(value: unknown): ContextStatus | undefined; export declare function worstContextStatus(...statuses: ReadonlyArray): ContextStatus | undefined; export declare function isContextDegraded(status: ContextStatus | undefined): boolean; export declare function screenContextUnavailableNote(canViewScreen: boolean): string; export declare const SELECTION_CONTEXT_UNAVAILABLE_NOTE: string; /** `partial` when another source did deliver context this turn. */ export declare function preloadedContextUnavailableNote(status: ContextStatus, options?: { partial?: boolean; }): string;