import type { ProviderSettings } from "../types/provider-settings";
import type { ProviderSettingsManager } from "./provider-settings-manager";
export interface MigrateLegacyProviderSettingsOptions {
    providerSettingsManager: ProviderSettingsManager;
    dataDir?: string;
    globalStatePath?: string;
    secretsPath?: string;
}
export interface MigrateLegacyProviderSettingsResult {
    migrated: boolean;
    providerCount: number;
    lastUsedProvider?: string;
}
export type LegacyClineUserInfo = {
    idToken: string;
    expiresAt: number;
    refreshToken: string;
    userInfo: {
        id: string;
        email: string;
        displayName: string;
        termsAcceptedAt: string;
        clineBenchConsent: boolean;
        createdAt: string;
        updatedAt: string;
    };
    provider: string;
    startedAt: number;
};
/**
 * Resolves legacy Cline account auth data from the raw `cline:clineAccountId`
 * secret string into the auth fields used by `ProviderSettings`.
 *
 * Returns `undefined` when the input is missing, empty, whitespace-only, or
 * unparseable JSON.
 */
export declare function resolveLegacyClineAuth(rawAccountData: string | undefined): ProviderSettings["auth"] | undefined;
export declare function migrateLegacyProviderSettings(options: MigrateLegacyProviderSettingsOptions): MigrateLegacyProviderSettingsResult;
//# sourceMappingURL=provider-settings-legacy-migration.d.ts.map