Files
ipal-kit/dist/modules/consent/useConsent.d.ts
T
2026-07-31 23:21:51 +02:00

10 lines
321 B
TypeScript

import type { ConsentCategory, ConsentState } from './categories.js';
export declare function useConsent(): {
acceptAll: () => void;
decided: boolean;
rejectAll: () => void;
reopen: () => void;
savePreferences: (choices: Partial<Record<ConsentCategory, boolean>>) => void;
state: ConsentState;
};