/** Set the project root directory. Called once from cli.ts at startup. */
export declare function setProjectRoot(root: string): void;
/** Get the project root directory. Falls back to process.cwd(). */
export declare function getProjectRoot(): string;
/**
 * Returns the .bobbit directory path.
 * Priority: BOBBIT_DIR env > BOBBIT_PI_DIR env (legacy) > <projectRoot>/.bobbit
 */
export declare function bobbitDir(projectRoot?: string): string;
/** Returns .bobbit/config */
export declare function bobbitConfigDir(projectRoot?: string): string;
/** Returns .bobbit/state */
export declare function bobbitStateDir(projectRoot?: string): string;
/**
 * Returns the global agent directory.
 * Priority: BOBBIT_AGENT_DIR env > PI_CODING_AGENT_DIR env > ~/.bobbit/agent/
 */
export declare function globalAgentDir(): string;
/**
 * Migrate ~/.pi/agent/ contents to ~/.bobbit/agent/ at startup.
 * - If ~/.pi/agent/ doesn't exist or was already migrated (.pi/agent.pre-bobbit/ exists), no-op.
 * - If ~/.bobbit/agent/ doesn't exist, rename ~/.pi/agent/ to ~/.bobbit/agent/.
 * - If both exist, merge: move session dirs from .pi to .bobbit (skip existing),
 *   copy auth.json/models.json/settings.json if not already in .bobbit.
 * - After migration, rename ~/.pi/agent/ to ~/.pi/agent.pre-bobbit/.
 * Idempotent and safe.
 */
export declare function migrateFromLegacyPiDir(): void;
/** Returns the global auth.json path. API keys are global, not per-project. */
export declare function globalAuthPath(): string;
//# sourceMappingURL=bobbit-dir.d.ts.map