acronweb-cookies
Version:
A modern, GDPR-compliant cookie consent plugin for React and Next.js applications
19 lines • 814 B
TypeScript
import { CookieManager, UserConsent, CookieSettings } from '../types';
export declare class AcronWebCookieManager implements CookieManager {
private readonly CONSENT_KEY;
private readonly SETTINGS_KEY;
private readonly USER_ID_KEY;
setConsent(consent: boolean, settings?: Partial<CookieSettings>): void;
getConsent(): boolean | null;
clearConsent(): void;
setCookie(name: string, value: string, options?: any): void;
getCookie(name: string): string | undefined;
removeCookie(name: string): void;
getSettings(): CookieSettings | null;
getUserId(): string;
private generateUserId;
private ensureUserId;
saveToFirebase(consent: UserConsent): Promise<void>;
}
export declare const cookieManager: AcronWebCookieManager;
//# sourceMappingURL=cookieManager.d.ts.map