import { VendorList as IABVendorList, } from "@iabtechlabtcf/core" export interface IConsent { [key: string]: boolean | undefined; } export type CookieCategory = | "necessary" | "performance" | "functional" | "advertising"; export interface ITCFGlobalVendorList extends IABVendorList { } export interface ISiteCookiesApiResponse { cookies: SiteCookie[]; cookie_list_updated_at: string; cookie_policy_updated_at: string; visitor_id: string; } export type SiteCookie = { cat: CookieCategory | string; desc: string; domain: string; host_key: string; expiration_time: string | number; id: number | string; name: string; unmasked_name: string; http_only: boolean; q1: string; q2: string; type: SiteCookieType }; export type SiteCookieType = 'cookie' | 'local_storage'; export interface ITCFConsent { vendors: { [key: string]: boolean } vendorsLegitimateInterest: { [key: string]: boolean } gatp: { [key: string]: boolean } categories: ITCFConsentCategory categoriesLegitimateInterest: ITCFConsentCategory } export type ITCFConsentCategory = { [key in ITCFVendorCategory as string]: { [key: string]: boolean } } export type ITCFVendorCategory = | "purposes" | "specialPurposes" | "specialFeatures" | "features"; export interface ITCFGatpVendor { provider_id: string; provider_name: string; policy_url: string; domains: string; } export interface ITCFGatpVendorList extends Array { } export type PublicApiTCFCategory = [ITCFVendorCategory, number] | [ITCFVendorCategory, number][]