"use strict";
/**
 * Device Code Handler
 *
 * Manages device code display prompts during OAuth Device Code flow.
 * Broadcasts device code events via WebSocket to both CLI terminal
 * and Web UI (ccs config).
 *
 * Events emitted by oauth-process.ts:
 * - deviceCode:received - When device code is parsed from output
 * - deviceCode:completed - When auth succeeds
 * - deviceCode:failed - When auth fails
 * - deviceCode:expired - When code expires (handled by UI timer)
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEVICE_CODE_TIMEOUT_MS = exports.deviceCodeEvents = void 0;
const events_1 = require("events");
// Global event emitter for device code events
exports.deviceCodeEvents = new events_1.EventEmitter();
// Default timeout for device code (15 minutes - GitHub's default)
exports.DEVICE_CODE_TIMEOUT_MS = 900000;
//# sourceMappingURL=device-code-handler.js.map