import type { IAgentModelInfo } from "./agent.js"; import type { SessionModelInfo } from "./state/protocol/state.js"; /** Well-known source id for models provided by a user's ChatGPT subscription. */ export declare const CHATGPT_SUBSCRIPTION_MODEL_SOURCE_ID = "chatgptSubscription"; /** Well-known key carrying a model's source id under its open `_meta` bag. */ export declare const AGENT_MODEL_SOURCE_ID_META_KEY = "modelSourceId"; /** * Builds a `_meta` payload carrying a model source id, or `undefined` when the * producer cannot confidently identify the source. */ export declare function createAgentModelSourceMeta(sourceId: string | undefined): Record | undefined; /** Reads a model source id from the open `_meta` bag, ignoring invalid values. */ export declare function readAgentModelSourceId(model: IAgentModelInfo | SessionModelInfo): string | undefined; /** Well-known key carrying a model's picker-group vendor id under its open `_meta` bag. */ export declare const AGENT_MODEL_GROUP_ID_META_KEY = "modelGroupId"; /** * Builds a `_meta` payload carrying a model's picker-group vendor id. * * A producer stamps this when a model's owning agent provider (used for session * routing) differs from the vendor its picker group should resolve under — e.g. * a Claude model is owned by the `claude` agent but groups under `copilot` or * `anthropic` by its transport. Keeping the group id in `_meta` leaves * {@link IAgentModelInfo.provider} free to stay the routing owner. */ export declare function createAgentModelGroupMeta(groupId: string): Record; /** Reads a model's picker-group vendor id from the open `_meta` bag, ignoring invalid values. */ export declare function readAgentModelGroupId(model: IAgentModelInfo | SessionModelInfo): string | undefined;