import type { ProviderSourceMode } from './config.js';
export interface ProviderSourceConfigSnapshot {
    sourceMode: ProviderSourceMode;
    disableUpstream: boolean;
    explicitProviderDir: string | null;
    userDir: string;
    upstreamDir: string;
    providerRoots: string[];
}
export interface ProviderSourceConfigUpdate {
    providerSourceMode?: ProviderSourceMode;
    providerDir?: string | undefined;
}
export declare function parseProviderSourceConfigUpdate(input: {
    providerSourceMode?: unknown;
    providerDir?: unknown;
}): {
    ok: true;
    updates: ProviderSourceConfigUpdate;
} | {
    ok: false;
    error: string;
};
