import type { Allocation, ChatModel, ProviderIssue } from '../types.js'; export declare function providerIssueFor(issues: ProviderIssue[], model: Pick | undefined): ProviderIssue | undefined; /** Only org models bill to an allocation; any other model ignores it. */ export declare function isOrgModel(modelId: string | null | undefined): boolean; /** The model the chat selects once its models load: the current one, else the one last chosen, * while the list still offers it; else the first whose provider has no issue, else the first. */ export declare function defaultModel({ models, providerIssues, current, stored, }: { models: ChatModel[]; providerIssues: ProviderIssue[]; current: string | null; stored: string | null; }): string | null; /** The allocation the chat bills a model to: none for a model that bills none, else the current * one, else the first it can charge once the allocations load. */ export declare function defaultAllocation({ model, allocations, current, }: { model: string | null | undefined; allocations: Allocation[] | undefined; current: string | null; }): string | null;