import type { ResolvedModelFlag } from "../config/config.js"; /** * Turn a `--model` value into a model and, when the user said one, a provider. * * A slash means a provider was named: everything before the FIRST slash is the * provider, everything after is the model. Splitting on the first slash only is * what lets `openrouter/anthropic/claude-sonnet-4` work — OpenRouter model * identifiers contain a slash of their own. * * A bare name is validated against the hosted text catalog, because that is the * only case where agency has to work the provider out for itself. A prefixed * name is never validated: `client.providerModules` can register a provider * under any name at startup, so at flag-parse time a custom provider and a typo * look identical, and guessing would reject working setups. */ export declare function resolveModelFlag(value: string, catalogNames?: string[]): ResolvedModelFlag;