10 lines
375 B
TypeScript
10 lines
375 B
TypeScript
import type { ConsentCategory, ConsentState } from './categories.js';
|
|
export declare function useConsent(cookieMap?: Partial<Record<ConsentCategory, string[]>>): {
|
|
acceptAll: () => void;
|
|
decided: boolean;
|
|
rejectAll: () => void;
|
|
reopen: () => void;
|
|
savePreferences: (choices: Partial<Record<ConsentCategory, boolean>>) => void;
|
|
state: ConsentState;
|
|
};
|