/**
 * After the one-time copy, `~/.pi/agent` belongs to upstream pi and is never written here. A user
 * who keeps editing its config files gets no effect in this product (omo#9173), so those edits are
 * detected and reported, and can be imported on request.
 */
export declare const LEGACY_PI_CONFIG_FILES: readonly ["auth.json", "keybindings.json", "models.json", "settings.json"];
export type LegacyPiConfigFile = (typeof LEGACY_PI_CONFIG_FILES)[number];
export interface LegacyPiEdit {
    readonly file: LegacyPiConfigFile;
    readonly piPath: string;
    readonly agentPath: string;
    readonly mtimeMs: number;
}
export interface LegacyPiDirOptions {
    readonly agentDir?: string;
    readonly homeDir?: string;
}
export interface LegacyPiImported {
    readonly file: LegacyPiConfigFile;
    readonly from: string;
    readonly to: string;
    readonly backupPath?: string;
}
export interface LegacyPiImportFailure {
    readonly file: string;
    readonly reason: string;
}
export interface LegacyPiImportResult {
    readonly piAgentDir: string;
    readonly agentDir: string;
    readonly imported: readonly LegacyPiImported[];
    readonly failures: readonly LegacyPiImportFailure[];
}
export declare function isLegacyPiConfigFile(name: string): name is LegacyPiConfigFile;
export declare function findLegacyPiEdits(options?: LegacyPiDirOptions): readonly LegacyPiEdit[];
/** The edits not reported yet, recorded as reported so each change is announced exactly once. */
export declare function takeLegacyPiEditNotice(options?: LegacyPiDirOptions): readonly LegacyPiEdit[];
export declare function formatLegacyPiEditNotice(edits: readonly LegacyPiEdit[], agentDir: string): string;
/** Startup must not fail over this check, so an unreadable pi file becomes the warning itself. */
export declare function legacyPiEditStartupNotice(options?: LegacyPiDirOptions): string | undefined;
/**
 * Copies the named config files (all edited ones when none is named) from `~/.pi/agent` into the
 * agent dir, backing up each agent copy first. Only reads `~/.pi/agent`.
 */
export declare function importLegacyPiConfig(files: readonly string[], options?: LegacyPiDirOptions & {
    readonly now?: Date;
}): LegacyPiImportResult;
//# sourceMappingURL=legacy-pi-edits.d.ts.map