UNPKG

react-cookie-manager

Version:

🍪 The ultimate React cookie consent solution. Automatically block trackers, manage consent preferences, and protect user privacy with an elegant UI. Perfect for modern web applications.

28 lines 1.1 kB
export type JurisdictionCode = "NONE" | "GDPR" | "CH" | "BR" | "PIPEDA" | "AU" | "APPI" | "PIPA" | "US-CA"; export interface GeoDetectionResult { countryCode: string | null; regionCode: string | null; } export interface GeoOptions { disableGeo?: boolean; endpointUrl?: string; timeoutMs?: number; cacheTtlMs?: number; countryOverride?: string | null; regionOverride?: string | null; regulatedCountries?: string[]; regulatedRegions?: string[]; defaultBehavior?: "show" | "hide"; } export declare function determineJurisdiction(countryCode: string | null, regionCode?: string | null, extraCountries?: string[] | undefined, extraRegions?: string[] | undefined): { showConsentBanner: boolean; jurisdiction: JurisdictionCode; }; export declare function detectGeo(options?: GeoOptions): Promise<GeoDetectionResult>; export declare function shouldShowConsentByGeo(options?: GeoOptions): Promise<{ show: boolean; countryCode: string | null; regionCode: string | null; jurisdiction: JurisdictionCode; }>; //# sourceMappingURL=geo.d.ts.map