import type { SessionModelInfo } from "./state/protocol/state.js"; import type { IAgentModelInfo } from "./agent.js"; /** * Well-known key for the renderer LM-service identifier of the BYOK model an * agent-host model is a copy of, carried under a model's open `_meta` bag (see * {@link IAgentModelInfo._meta} / {@link SessionModelInfo._meta}). * * A renderer BYOK model is registered under `//` (or `/` * without a configured group) — exactly the id the "Manage Models" view keys visibility * by. That identifier is not otherwise recoverable once the model round-trips the * agent-host bridge, so the renderer attaches it here so the chat model picker can honour * the model's visibility toggle. */ export declare const BYOK_MODEL_IDENTIFIER_META_KEY = "byokModelIdentifier"; /** * Builds a `_meta` payload carrying the BYOK model identifier, or `undefined` when there * is none so callers can avoid attaching an empty `_meta` object. */ export declare function createAgentModelByokMeta(modelIdentifier: string | undefined): Record | undefined; /** * Reads the BYOK model identifier from a model's open `_meta` bag, ignoring unrelated * keys and values of the wrong type. */ export declare function readAgentModelByokIdentifier(model: IAgentModelInfo | SessionModelInfo): string | undefined;