@tantainnovative/ndpr-toolkit
Version:
Nigerian Data Protection Compliance Toolkit for implementing NDPR and DPA compliant features
12 lines • 553 B
TypeScript
import { ConsentType, ConsentRecord } from '@/types';
export declare function useConsent(): {
consentRecord: ConsentRecord | null;
isLoading: boolean;
showBanner: boolean;
saveConsent: (consents: Record<ConsentType, boolean>, userId?: string) => ConsentRecord;
updateConsent: (consents: Record<ConsentType, boolean>, changeReason?: string, userId?: string) => ConsentRecord;
hasConsent: (type: ConsentType) => boolean;
openPreferences: () => void;
closePreferences: () => void;
};
//# sourceMappingURL=useConsent.d.ts.map