import { Entitlement } from '../ipc'; /** * The entitlement context returned by {@link useEntitlement}. * @internal */ export interface IEntitlementContext { /** The current entitlement state, or null while the initial request is in flight. */ entitlement: Entitlement | null; /** True once the initial entitlement request has completed. */ isLoaded: boolean; } /** * Hook that acquires and tracks the extension's license entitlement. Extensions that are * either "Verified" or "Licensed" should call this at the top of their root component and render a * "invalid" or "license required" state while `entitlement` is not granted; the host rejects * their other API calls until an entitlement is granted. The state updates automatically if the * host revokes or renews the entitlement (for example when a license is deactivated or expires). * @param productEan - The product EAN of the extension, as assigned by Kvaser. * @param version - The version of the extension, as specified in the extension's package.json. * @param distributionTier - The distribution tier of the extension, "Verified" or "Licensed". * @returns The current entitlement context. * @internal */ export declare const useEntitlement: (productEan: string, version: string, distributionTier: "Verified" | "Licensed") => IEntitlementContext;