export { loadImageGenSettings } from './settings.js'; import type { ImageGenSettings, ResolvedModel } from './types.js'; /** * Returns the resolved value for an apiKey/header field. Supports `$VAR` * and `${VAR}` env substitution; returns undefined for missing env vars * so downstream code can fall through to defaults. * * Resolution happens here so settings from disk and settings constructed in * code get identical behavior. */ export declare function resolveConfigString(value: string | undefined): string | undefined; export declare function configEnvironmentValues(value: string | undefined): string[]; /** * Resolve a model id (or alias) to a (provider, remoteModelId) pair using: * 1. Custom providers' explicit model lists (alias or id match). * 2. Built-in known models (alias or id match). * 3. `/` fallback for explicit routing. * 4. Catch-all: any custom provider that didn't declare a `models` list * will accept any unknown model id, passing it through as the remote id. * This lets users configure a single OpenAI-compatible gateway and use * any model name without restating it in `models`. */ export declare function resolveModel(modelOrAlias: string, settings: ImageGenSettings): ResolvedModel | { error: string; }; export declare function listKnownModelIds(): string[]; //# sourceMappingURL=config.d.ts.map