c15t
Version:
Headless JavaScript consent management platform for cookie banners, privacy preferences, consent storage, and script gating.
14 lines (13 loc) • 499 B
TypeScript
/**
* Browser-side prefetch utilities for c15t consent init data.
*
* These functions let any framework start the `/init` request early
* (before hydration) so the runtime can consume matching data automatically.
*
* @remarks
* Framework adapters like `@c15t/nextjs` provide thin wrappers
* (e.g. `C15tPrefetch`) that use these building blocks with
* framework-specific script injection.
*/
export { buildPrefetchScript } from './prefetch';
export type { PrefetchOptions } from './types';