/** * Platform CLI Configuration Paths * * Manages file paths for global and project-level configuration. */ /** * Get the global configuration directory (~/.apso/) * Can be overridden with APSO_CONFIG_DIR environment variable */ export declare function getGlobalConfigDir(): string; /** * Get path to global config file (~/.apso/config.json) */ export declare function getGlobalConfigPath(): string; /** * Get path to credentials file (~/.apso/credentials.json) */ export declare function getCredentialsPath(): string; /** * Get path to cache directory (~/.apso/cache/) */ export declare function getCacheDir(): string; /** * Get project-level config directory (.apso/) * @param projectDir - The project directory (defaults to cwd) */ export declare function getProjectConfigDir(projectDir?: string): string; /** * Get path to project link file (.apso/link.json) * @param projectDir - The project directory (defaults to cwd) */ export declare function getProjectLinkPath(projectDir?: string): string; /** * Get path to sync queue file (.apso/sync-queue.json) * @param projectDir - The project directory (defaults to cwd) */ export declare function getSyncQueuePath(projectDir?: string): string; /** * Get path to project backups directory (.apso/backups/) * @param projectDir - The project directory (defaults to cwd) */ export declare function getProjectBackupsDir(projectDir?: string): string; /** * Ensure a directory exists, creating it if necessary * @param dirPath - Path to the directory */ export declare function ensureDir(dirPath: string): void; /** * Ensure the global config directory exists with correct permissions */ export declare function ensureGlobalConfigDir(): void; /** * Ensure the project config directory exists * @param projectDir - The project directory (defaults to cwd) */ export declare function ensureProjectConfigDir(projectDir?: string): void; /** * Check if a project is linked to the platform * @param projectDir - The project directory (defaults to cwd) */ export declare function isProjectLinked(projectDir?: string): boolean; /** * Check if user is authenticated (credentials file exists) */ export declare function hasCredentials(): boolean;