import { type Api, type Model } from "@bastani/pi-ai/compat"; import type { ScopedModel } from "./model-resolver-types.ts"; import type { ModelRuntime } from "./model-runtime.js"; export interface ModelScopeDiagnostic { type: "warning"; code: "no-match" | "invalid-thinking-level" | "ambiguous"; message: string; pattern: string; } export interface ResolveModelScopeResult { scopedModels: ScopedModel[]; diagnostics: ModelScopeDiagnostic[]; } /** * Resolve scope patterns (`--models`, `enabledModels`) to models with optional thinking levels. * * A complete literal reference is tried first, then glob patterns, then fuzzy matching with an * optional `:` suffix. Every model in `models` is usable, so credentials cannot choose * between providers offering the same id. All of them are added, with a warning so the user can pick * one with `provider/id`. */ export declare function resolveModelScopeFromModels(patterns: string[], models: readonly Model[]): ResolveModelScopeResult; export declare function resolveModelScopeWithDiagnostics(patterns: string[], modelRuntime: ModelRuntime): Promise; export declare function resolveModelScope(patterns: string[], modelRuntime: ModelRuntime): Promise; //# sourceMappingURL=model-resolver-scope.d.ts.map