@iabtechlabtcf/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).
24 lines (23 loc) • 909 B
TypeScript
import { CmpStatus, DisplayStatus, EventStatus } from './status/index.js';
import { EventListenerQueue } from './EventListenerQueue.js';
import { TCModel } from '@iabtechlabtcf/core';
/**
* 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 reset(): void;
}