import { type AuthToken } from "../auth/index.js"; export interface BmuxClientConfig { serverUrl?: string; authToken?: string; } /** * Get the path to the tasks-adapter config directory (~/.tasks-adapter). */ export declare function getBmuxDir(): string; /** * Get the path to the auth state file (~/.tasks-adapter/auth.json). */ export declare function getAuthStorePath(): string; /** * Get the path to the client config file (~/.tasks-adapter/config.json). */ export declare function getClientConfigPath(): string; /** * Get the path to the SSH keys directory (~/.tasks-adapter/keys). */ export declare function getKeysDir(): string; /** * Load CLI/MCP client configuration from ~/.tasks-adapter/config.json. */ export declare function loadClientConfig(): BmuxClientConfig; /** * Save or update CLI/MCP client configuration in ~/.tasks-adapter/config.json. */ export declare function saveClientConfig(next: BmuxClientConfig): void; /** * Load the stored authentication state from ~/.tasks-adapter/auth.json. * Returns null if no auth file exists or the contents are invalid. */ export declare function loadAuthState(): AuthToken | null; /** * Save authentication state to ~/.tasks-adapter/auth.json. * Creates the directory if it does not exist. * Sets file permissions to 0600 (owner read/write only). */ export declare function saveAuthState(state: AuthToken): void; /** * Clear the stored authentication state by removing ~/.tasks-adapter/auth.json. */ export declare function clearAuthState(): void; /** * Check whether a token has expired based on its expiresAt timestamp. */ export declare function isTokenExpired(expiresAt: string): boolean; //# sourceMappingURL=auth-store.d.ts.map