import type log from "loglevel"; /** * One-time migration for CLIs upgrading from the local-file default project * (`selected-project.json`) to the backend-persisted per-user setting. * * When the legacy file is present and the account has no *stored* default * server-side (checked with `includeAutoPick: false`, so a transient * sole-project auto-pick does not count — see the inline note below), its * project is pushed up as the new default. A stored default set on another * machine / the web takes precedence. The file is then removed so this runs at * most once per machine. * * Entirely best-effort: any failure (unreadable file, network, older backend) * is swallowed and the file left in place to retry — a missed migration just * means the user re-runs `auth set-project`, which is the pre-migration status * quo. A corrupt file is discarded. */ export declare const migrateLegacySelectedProjectIfPresent: (apiToken: string, logger: log.Logger, appInfo?: string) => Promise; //# sourceMappingURL=legacy-project-migration.d.ts.map