/** * YuiHub V1 Authentication Module * File-based Handshake: Token is written to DATA_DIR/.token */ export interface AuthToken { token: string; created_at: string; } /** * Generate a new auth token */ export declare function generateToken(): string; /** * Get the token file path */ export declare function getTokenPath(dataDir: string): string; /** * Initialize authentication - generate token if not exists * This is called on backend startup */ export declare function initAuth(dataDir: string): Promise; /** * Read token from file (for MCP Server / VSCode Client) */ export declare function readToken(dataDir: string): Promise; /** * Validate a token against the stored token */ export declare function validateToken(dataDir: string, token: string): Promise; //# sourceMappingURL=auth.d.ts.map