/**
 * One-time migrations that run on startup.
 */
export declare const CORE_EXTENSION_PATHS: readonly ["damage-control", "provider-profiles", "model-failover", "web-search", "web-fetch", "commands", "hooks", "circuit-breaker", "auto-router", "memory-include", "aery-header", "aery-footer", "multi-agent", "agent-chain", "agent-teams", "help", "default-agents", "aery-doctor", "aery-team", "subagent/index", "marketplace", "init-prompt"];
export interface CoreExtensionDiagnostic {
    repoExists: boolean;
    missingFiles: string[];
    missingSettingsEntries: string[];
}
export interface CoreExtensionWireResult extends CoreExtensionDiagnostic {
    added: string[];
}
export interface CoreExtensionEnsureResult extends CoreExtensionWireResult {
    status: "installed" | "offline" | "ok";
    repoPath: string;
    settingsPath: string;
    error?: string;
}
export declare function getCoreExtensionFilePaths(repoPath: string): string[];
export declare function diagnoseCoreExtensions(repoPath: string, settingsPath: string): CoreExtensionDiagnostic;
export declare function wireCoreExtensions(repoPath: string, settingsPath: string): CoreExtensionWireResult;
/**
 * Migrate legacy oauth.json and settings.json apiKeys to auth.json.
 *
 * @returns Array of provider names that were migrated
 */
export declare function migrateAuthToAuthJson(): string[];
/**
 * Migrate sessions from ~/.aery/agent/*.jsonl to proper session directories.
 *
 * Bug in v0.30.0: Sessions were saved to ~/.aery/agent/ instead of
 * ~/.aery/agent/sessions/<encoded-cwd>/. This migration moves them
 * to the correct location based on the cwd in their session header.
 *
 * See: https://github.com/eminent337/aery/issues/320
 */
export declare function migrateSessionsFromAgentRoot(): void;
/**
 * Print deprecation warnings and wait for keypress.
 */
export declare function showDeprecationWarnings(warnings: string[]): Promise<void>;
/**
 * Ensure aery-extensions is cloned and core extensions are wired.
 * Called at startup — installs aery-extensions if missing, then wires core extensions.
 * Safe to call multiple times (idempotent).
 *
 * @returns core extension bootstrap status and diagnostics
 */
export declare function ensureCoreExtensions(): CoreExtensionEnsureResult;
export declare function formatCoreExtensionAttentionMessage(result: CoreExtensionEnsureResult): string | undefined;
/**
 * Run all migrations. Called once on startup.
 *
 * @returns Object with migration results and deprecation warnings
 */
export declare function runMigrations(cwd: string): {
    migratedAuthProviders: string[];
    deprecationWarnings: string[];
};
//# sourceMappingURL=migrations.d.ts.map