import { type BuildProviderCommandOptions, type CliFeatureOverrides, type CleanupMetadata, type CommandSpec, type ErrorClassification, type LevelModelSpec, type LevelOverrides, type ModelCatalogEntry, type ModelLevel, type ProviderId, type ProviderParserState, type RedactionMetadata, type ResolvedModelSpec, type WarningMetadata } from '../types'; export declare function createParserState(provider: ProviderId): ProviderParserState; export declare function commandSpec(input: { readonly binary: string; readonly args: readonly string[]; readonly env?: Readonly>; readonly cwd?: string; readonly cleanup?: readonly string[]; readonly cleanupMetadata?: readonly CleanupMetadata[]; readonly warnings?: readonly WarningMetadata[]; readonly redactions?: readonly RedactionMetadata[]; }): CommandSpec; export declare function warning(provider: ProviderId, code: string, message: string): WarningMetadata; export declare function unsupportedSessionControlWarnings(provider: ProviderId, options: BuildProviderCommandOptions): WarningMetadata[]; export declare function envRedactions(env: Readonly>): readonly RedactionMetadata[]; interface ModelResolutionConfig { readonly mapping: Readonly>; readonly defaultLevel: ModelLevel; readonly level: ModelLevel; readonly overrides: LevelOverrides | undefined; readonly validateModelId: (modelId: string | null | undefined) => string | null | undefined; } export declare function resolveModelSpecWithConfig(config: ModelResolutionConfig): ResolvedModelSpec; export declare function validateModelIdFromCatalog(provider: ProviderId, catalog: Readonly>, modelId: string | null | undefined): string | null | undefined; export declare function classifyBaseProviderError(error: unknown, retryablePatterns: readonly RegExp[], permanentPatterns: readonly RegExp[]): ErrorClassification; export declare function optionFeatures(options: BuildProviderCommandOptions | undefined): CliFeatureOverrides; export declare function isCliVersionAtLeast(versionText: string | null | undefined, floor: string): boolean; export {}; //# sourceMappingURL=common.d.ts.map