@didomi/iabtcf-cmpapi
Version:
Ensures other in-page digital marketing technologies have access to CMP transparency and consent information for the iab. Transparency and Consent Framework (TCF).
27 lines (26 loc) • 1.05 kB
TypeScript
import { CmpStatus, DisplayStatus, EventStatus } from './status/index.js';
import { EventListenerQueue } from './EventListenerQueue.js';
import { TCModel } from '@didomi/iabtcf-core';
import { Restrictions } from './response/Restrictions.js';
import { Cache } from './Cache.js';
/**
* Class holds shareable data across cmp api and provides change event listener for TcModel.
* Within the context of the CmpApi, this class acts much like a global state or database,
* where CmpApi sets data and Commands read the data.
*/
export declare class CmpApiModel {
static readonly apiVersion = "2";
static tcfPolicyVersion: number;
static readonly eventQueue: EventListenerQueue;
static cmpStatus: CmpStatus;
static disabled: boolean;
static displayStatus: DisplayStatus;
static cmpId: number;
static cmpVersion: number;
static eventStatus: EventStatus;
static gdprApplies: boolean;
static tcModel: TCModel;
static tcString: string;
static restrictionsCache: Cache<Restrictions>;
static reset(): void;
}