/** * Keygen REST API client for React Buoy * * License validation + device registration for visibility. * No limits enforced - we trust our customers. */ import type { KeygenValidationResponse, KeygenMachineResponse, LicenseValidationResult } from "./types"; /** * Validate a license key with Keygen */ export declare function validateLicense(licenseKey: string): Promise; /** * Activate a machine for a license (for visibility, not enforcement) */ export declare function activateMachine(licenseId: string, licenseKey: string, fingerprint: string, name: string, metadata?: Record): Promise; /** * Parse validation response into a simpler result * Note: response.data can be null when license is invalid (e.g., NOT_FOUND) */ export declare function parseValidationResult(response: KeygenValidationResponse): LicenseValidationResult; /** * Check if a validation code indicates a fatal error (license invalid) */ export declare function isFatalLicenseError(code: string): boolean; //# sourceMappingURL=api.d.ts.map