import { type AgentWorkspaceLocator } from "./agent-workspace-key.js";
export declare function resolveRudderHomeDir(): string;
export declare function resolveRudderInstanceId(): string;
export declare function resolveRudderInstanceRoot(): string;
export declare function resolveDefaultConfigPath(): string;
export declare function resolveDefaultEmbeddedPostgresDir(): string;
export declare function resolveDefaultLogsDir(): string;
export declare function resolveDefaultSecretsKeyFilePath(): string;
export declare function resolveDefaultStorageDir(): string;
export declare function resolveDefaultBackupDir(): string;
export declare function resolveOrganizationRoot(orgId: string): string;
export declare function resolveLegacyOrganizationRoot(orgId: string): string;
export declare function resolveOrganizationWorkspaceRoot(orgId: string): string;
export declare function resolveLegacyOrganizationWorkspaceRoot(orgId: string): string;
export declare function resolveOrganizationWorkspaceHomeDir(): string;
export declare function resolveDefaultAgentWorkspaceDir(orgId: string, agent: string | AgentWorkspaceLocator): string;
export declare function resolveAgentInstructionsDir(orgId: string, agent: string | AgentWorkspaceLocator): string;
export declare function resolveAgentMemoryDir(orgId: string, agent: string | AgentWorkspaceLocator): string;
export declare function resolveAgentLifeDir(orgId: string, agent: string | AgentWorkspaceLocator): string;
export declare function resolveAgentSkillsDir(orgId: string, agent: string | AgentWorkspaceLocator): string;
export declare function resolveOrganizationSkillsDir(orgId: string): string;
export declare function resolveOrganizationAgentsDir(orgId: string): string;
export declare function resolveOrganizationProjectsDir(orgId: string): string;
export declare function resolveProjectLibraryRelativePath(input: {
    projectId: string;
    projectName?: string | null;
    projectUrlKey?: string | null;
}): string;
export declare function resolveProjectLibraryDir(input: {
    orgId: string;
    projectId: string;
    projectName?: string | null;
    projectUrlKey?: string | null;
}): string;
export declare function resolveManagedOrganizationCodebaseDir(input: {
    orgId: string;
    repoName?: string | null;
}): string;
export declare function ensureOrganizationWorkspaceLayout(orgId: string): Promise<{
    root: string;
    agentsDir: string;
    skillsDir: string;
    projectsDir: string;
}>;
export declare function migrateOrganizationStorageRoot(orgId: string): Promise<{
    canonicalRootPath: string;
    legacyRootPath: string;
    migrated: boolean;
    mergedIntoExistingTarget: boolean;
    skippedBecauseTargetExists: boolean;
}>;
export declare function migrateOrganizationWorkspaceRoot(orgId: string): Promise<{
    canonicalRootPath: string;
    legacyRootPath: string;
    migrated: boolean;
    mergedIntoExistingTarget: boolean;
    skippedBecauseTargetExists: boolean;
}>;
export declare function reconcileOrganizationStorageRoots(liveOrgIds: readonly string[]): Promise<{
    migrations: Array<Awaited<ReturnType<typeof migrateOrganizationStorageRoot>>>;
    pruned: Awaited<ReturnType<typeof pruneOrphanedOrganizationStorage>>;
}>;
export declare function ensureProjectLibraryLayout(input: {
    orgId: string;
    projectId: string;
    projectName?: string | null;
    projectUrlKey?: string | null;
}): Promise<{
    root: string;
    relativePath: string;
    readmePath: string;
}>;
export declare function ensureAgentWorkspaceLayout(agent: {
    orgId: string;
    id: string;
    name?: string | null;
    workspaceKey?: string | null;
}): Promise<{
    root: string;
    instructionsDir: string;
    memoryDir: string;
    lifeDir: string;
    skillsDir: string;
}>;
export declare function removeOrganizationStorage(orgId: string): Promise<{
    organizationRootPath: string;
    legacyOrganizationRootPath: string;
    workspaceRootPath: string;
    legacyProjectsRootPath: string;
}>;
export declare function pruneOrphanedOrganizationStorage(liveOrgIds: readonly string[]): Promise<{
    removedOrganizationDirNames: string[];
    removedWorkspaceDirNames: string[];
    removedLegacyProjectDirNames: string[];
    removedLegacyProjectsRoot: boolean;
}>;
export declare function resolveHomeAwarePath(value: string): string;
//# sourceMappingURL=home-paths.d.ts.map