c15t
Version:
<div align="center"> <img src="https://c15t.com/logo-icon.png" alt="c15t Logo" width="64" height="64" /> <h1>c15t</h1> <p>Transform privacy consent from a compliance checkbox into a fully observable system</p>
29 lines • 1.31 kB
TypeScript
/**
* @packageDocumentation
* Handles fetching and processing consent banner information.
*/
import type { ContractsOutputs } from '@c15t/backend/contracts';
import { type TranslationConfig } from '@c15t/translations';
import type { StoreApi } from 'zustand/vanilla';
import type { ConsentManagerInterface } from '../client/client-factory';
import type { PrivacyConsentState } from '../store.type';
type ConsentBannerResponse = ContractsOutputs['consent']['showBanner'];
/**
* Configuration for fetching consent banner information
*/
interface FetchConsentBannerConfig {
manager: ConsentManagerInterface;
initialData?: Promise<ContractsOutputs['consent']['showBanner'] | undefined>;
initialTranslationConfig?: Partial<TranslationConfig>;
get: StoreApi<PrivacyConsentState>['getState'];
set: StoreApi<PrivacyConsentState>['setState'];
}
/**
* Fetches consent banner information from the API and updates the store.
*
* @param config - Configuration object containing store and manager instances
* @returns A promise that resolves with the consent banner response when the fetch is complete
*/
export declare function fetchConsentBannerInfo(config: FetchConsentBannerConfig): Promise<ConsentBannerResponse | undefined>;
export {};
//# sourceMappingURL=fetch-consent-banner.d.ts.map