/** * Length of pairing code (6 digits) */ export declare const PAIRING_CODE_LENGTH = 6; /** * Time-to-live for pairing codes in milliseconds (5 minutes) */ export declare const PAIRING_CODE_TTL_MS: number; /** * Maximum number of validation attempts per code */ export declare const PAIRING_CODE_MAX_ATTEMPTS = 5; /** * A pairing code entry */ export interface PairingCode { /** The 6-digit pairing code */ code: string; /** When the code was created */ createdAt: number; /** When the code expires */ expiresAt: number; /** Whether the code has been consumed */ consumed: boolean; /** Number of validation attempts made */ attempts: number; /** IP address of the client that generated the code */ clientIp: string; /** Session token generated when code is validated (if consumed) */ sessionToken?: string; } /** * Result of validating a pairing code */ export type PairingCodeValidationResult = { kind: "success"; sessionToken: string; } | { kind: "invalid"; } | { kind: "expired"; } | { kind: "consumed"; } | { kind: "max-attempts"; };