@tantainnovative/ndpr-toolkit
Version:
Nigerian Data Protection Compliance Toolkit for implementing NDPR and DPA compliant features
24 lines • 1.46 kB
TypeScript
export { ConsentProvider, useConsent, ConsentContext } from './contexts/ConsentContext';
export type { ConsentCategories, ConsentState, ConsentActions, ConsentContextValue } from './contexts/ConsentContext';
export { createConsentContext } from './contexts/GenericConsentContext';
export type { BaseConsentCategories, DefaultConsentCategories, ConsentProviderProps, } from './types/consent';
export { ConsentManager } from './components/consent/ConsentManager';
export { ConsentBanner } from './components/consent/ConsentBanner';
export { ConsentSettings } from './components/consent/ConsentSettings';
export type { ConsentManagerProps, BannerProps, SettingsProps, RenderProps } from './components/consent/ConsentManager';
export { UnstyledConsentBanner, UnstyledConsentSettings, UnstyledConsentToggle, } from './components/consent/unstyled';
export { useConsentState } from './hooks/useConsentState';
export { useConsentActions } from './hooks/useConsentActions';
export { useConsentManager } from './hooks/useConsentManager';
export { consentService } from './lib/consentService';
export declare const cookieUtils: {
set: (name: string, value: string, days: number) => void;
get: (name: string) => string | null;
delete: (name: string) => void;
};
export declare const consentStorage: {
save: (key: string, data: any) => void;
load: (key: string) => any | null;
remove: (key: string) => void;
};
//# sourceMappingURL=index.d.ts.map