/** * Server-side GitHub device flow poller * * Handles polling GitHub for device flow completion, respecting rate limits * and pushing results to clients via WebSocket. */ import type { ServerWebSocket } from "bun"; import type { ResolvedServerConfig } from "../config/types.js"; type WebSocketData = { subscriptions: Set; authSubscriptions?: Set; }; /** * Register a GitHub device code mapping */ export declare function registerDeviceCode(ourDeviceCode: string, githubDeviceCode: string): void; /** * Subscribe a WebSocket client to auth completion notifications */ export declare function subscribeToAuth(ws: ServerWebSocket, deviceCode: string, config: ResolvedServerConfig): void; /** * Unsubscribe a WebSocket client from auth notifications */ export declare function unsubscribeFromAuth(ws: ServerWebSocket, deviceCode: string): void; /** * Clean up when a WebSocket disconnects */ export declare function cleanupClientAuth(ws: ServerWebSocket): void; /** * Get the device code map (for backward compatibility with routes.ts) */ export declare function getDeviceCodeMap(): Map; export {}; //# sourceMappingURL=poller.d.ts.map