@tantainnovative/ndpr-toolkit
Version:
Nigerian Data Protection Compliance Toolkit for implementing NDPR and DPA compliant features
11 lines • 588 B
TypeScript
import { ConsentRecord, ConsentType, ConsentHistoryEntry } from '@/types';
export declare const consentService: {
saveConsent: (consents: Record<ConsentType, boolean>, userId?: string) => ConsentRecord;
getCurrentConsent: () => ConsentRecord | null;
getConsentHistory: () => ConsentHistoryEntry[];
updateConsent: (consents: Record<ConsentType, boolean>, changeReason?: string, userId?: string) => ConsentRecord;
clearConsentData: () => void;
hasConsent: (type: ConsentType) => boolean;
};
export default consentService;
//# sourceMappingURL=consentService.d.ts.map