UNPKG

@tengerly/cookie-consent

Version:

A lightweight, customizable cookie consent solution for Next.js and modern web frameworks with comprehensive multi-language support

14 lines (11 loc) 431 B
import { CookieConsentOptions } from './cookie-consent-library'; export interface UseCookieConsentReturn { consent: string | null; hasConsent: (type?: 'all' | 'essential') => boolean; showWidget: () => void; showPreferences: () => void; resetConsent: () => void; isLoaded: boolean; } export declare const useCookieConsent: (options?: CookieConsentOptions) => UseCookieConsentReturn; export { CookieConsentOptions };