/** * Arial Server - Device flow repository * * CRUD operations for OAuth device flow state */ import type { CreateDeviceFlowData, DeviceFlow } from "./types.js"; /** * Create a new device flow */ export declare function createDeviceFlow(data: CreateDeviceFlowData): DeviceFlow; /** * Get device flow by device code */ export declare function getDeviceFlowByCode(deviceCode: string): DeviceFlow | null; /** * Get device flow by user code */ export declare function getDeviceFlowByUserCode(userCode: string): DeviceFlow | null; /** * Mark device flow as completed with user ID */ export declare function completeDeviceFlow(deviceCode: string, userId: string): void; /** * Delete a device flow */ export declare function deleteDeviceFlow(deviceCode: string): boolean; /** * Delete expired device flows */ export declare function cleanupExpiredFlows(): number; /** * Check if a device flow is expired */ export declare function isDeviceFlowExpired(flow: DeviceFlow): boolean; //# sourceMappingURL=device-flows.d.ts.map