import type { Regulation } from "./regulations"; import { inferRegulation } from "./regulations"; import * as gpp from "./gpp"; import * as tcf from "./tcf"; type CMPApiConfig = { tcfeuVendorID?: number; tcfcaVendorID?: number; }; type Consent = { deviceAccess: boolean; createProfilesForAdvertising: boolean; useProfilesForAdvertising: boolean; measureAdvertisingPerformance: boolean; reg: Regulation | null; gdpr?: string; gdprApplies?: boolean; gpp?: string; gppSectionIDs?: number[]; }; type CMPSignals = { gdprString?: string; gdprApplies?: boolean; gdprData?: tcf.cmpapi.TCData; gppString?: string; gppSectionIDs?: number[]; gppData?: gpp.cmpapi.PingReturn; }; declare function applicableReg(defaultReg: Regulation | null, cmp: CMPSignals): Regulation | null; declare function getConsent(defaultReg: Regulation | null, conf?: CMPApiConfig): Consent; export { getConsent, inferRegulation, applicableReg }; export type { Consent, CMPApiConfig };