import type { CwdMigrationResult as MigrationResult } from '../../types/migration/cwd-to-absolute.js';
export type { MigrationResult };
/** Test-only: reset the in-memory short-circuit set. */
export declare function clearMigratedThisSession(): void;
declare function pathExists(p: string): Promise<boolean>;
/**
 * Move a legacy `<cwd>/data/projects/<id>/` tree into the absolute home for
 * `projectId`. Idempotent across calls and processes.
 *
 * Test isolation: when PLANU_PROJECT_DATA_DIR is assigned to a fresh tmp dir
 * (as in `tests/setup.ts`), this migration walks `cwd` from the test's
 * directory and finds nothing — returns `noop` immediately.
 */
export declare function migrateLegacyDataDir(projectId: string, cwd?: string): Promise<MigrationResult>;
export declare const MIGRATION_INTERNALS: Readonly<{
    SENTINEL_FILE: ".migrated-from-cwd";
    LOCK_FILE: ".migration.lock";
    MAX_WALK_DEPTH: 8;
    ANCHOR_FILE: "knowledge.json";
    LEGACY_SUBPATH: "data/projects";
}>;
export declare const __test: {
    pathExists: typeof pathExists;
};
//# sourceMappingURL=cwd-to-absolute.d.ts.map