/** * React hooks for license management * * Simplified model: Just validate license, no device/session management. * We trust our customers. */ import type { LicenseState } from "./types"; /** * Hook to access the current license state * * @example * ```tsx * function MyComponent() { * const { isPro, isValidating, error } = useLicense(); * * if (isValidating) return ; * if (isPro) return ; * return ; * } * ``` */ export declare function useLicense(): LicenseState & { /** Validate and set a license key */ setLicenseKey: (key: string) => Promise; /** Clear the current license */ clearLicense: () => Promise; }; /** * Hook to check if a feature is available based on license */ export declare function useFeatureAccess(featureCode?: string): { hasAccess: boolean; isPro: boolean; isLoading: boolean; }; /** * Hook that returns true only when Pro and not loading */ export declare function useIsPro(): boolean; //# sourceMappingURL=hooks.d.ts.map