import * as React from 'react'; import { CookieCategory, IConsent, ISiteCookiesApiResponse, ITCFConsent, ITCFGatpVendorList, ITCFGlobalVendorList, ITCFVendorCategory, PublicApiTCFCategory } from './types/types'; export type CookieFirstPublicApi = { isErrorState: boolean; consent: IConsent | null; acceptedServices: IConsent; stealthMode: boolean | null; hasConsented: boolean; openPanel: (tab?: string) => void; closePanel: () => void; acceptCategory: (category?: CookieCategory | CookieCategory[]) => Promise; declineCategory: (category?: CookieCategory | CookieCategory[]) => Promise; acceptService: (service?: string | string[]) => Promise; declineService: (service?: string | string[]) => Promise; acceptAllCategories: () => Promise; acceptPreselectedCategories: () => Promise; deny: () => Promise; declineAllCategories: () => Promise; withdrawConsent: () => Promise; fetchLatestScan?: () => Promise; renderEmbeds: () => void; notifyViewChanged: () => void; changeLanguage: (newLang: string) => void; visitorId: string | null; consentTimestamp: number | null; TCFconsent: ITCFConsent | null; TCFeventStatus: string | boolean; TCFcountry: string | null; TCFgvl: ITCFGlobalVendorList | null; TCFgatp: ITCFGatpVendorList | null; TCFisEnabled: boolean | null; TCFgetConsentStructure?: () => ITCFConsent; TCFacceptCategory: (categories: PublicApiTCFCategory) => Promise; TCFdeclineCategory: (categories: PublicApiTCFCategory) => Promise; TCFacceptCategoryLegitimateInterest: (categories: PublicApiTCFCategory) => Promise; TCFdeclineCategoryLegitimateInterest: (categories: PublicApiTCFCategory) => Promise; TCFacceptVendor: (id: number | number[]) => Promise; TCFdeclineVendor: (id: number | number[]) => Promise; TCFacceptVendorLegitimateInterest: (id: number | number[]) => Promise; TCFdeclineVendorLegitimateInterest: (id: number | number[]) => Promise; TCFisVendorAccepted: (id: number) => boolean; TCFisVendorLegitimateInterestAccepted: (id: number) => boolean; TCFisCategoryAccepted: (name: ITCFVendorCategory, id: number) => boolean; TCFisCategoryLegitimateInterestAccepted: (name: ITCFVendorCategory, id: number) => boolean; TCFacceptGatpVendor: (id: number | number[]) => Promise; TCFdeclineGatpVendor: (id: number | number[]) => Promise; TCFisGatpVendorAccepted: (id: number) => boolean; updateConsent: (consent: IConsent, tcf?: ITCFConsent) => Promise; }; export declare const initialContext: { isErrorState: boolean; consent: null; acceptedServices: {}; openPanel: () => void; closePanel: () => void; updateConsent: () => Promise; acceptCategory: () => Promise; acceptService: () => Promise; acceptAllCategories: () => Promise; acceptPreselectedCategories: () => Promise; declineAllCategories: () => Promise; declineCategory: () => Promise; declineService: () => Promise; withdrawConsent: () => Promise; deny: () => Promise; renderEmbeds: () => void; notifyViewChanged: () => void; changeLanguage: () => void; visitorId: null; consentTimestamp: null; TCFconsent: null; TCFeventStatus: boolean; TCFcountry: null; TCFgvl: null; TCFgatp: null; TCFisEnabled: null; stealthMode: null; hasConsented: boolean; TCFacceptCategory: () => Promise; TCFdeclineCategory: () => Promise; TCFacceptCategoryLegitimateInterest: () => Promise; TCFdeclineCategoryLegitimateInterest: () => Promise; TCFacceptVendor: () => Promise; TCFdeclineVendor: () => Promise; TCFacceptVendorLegitimateInterest: () => Promise; TCFdeclineVendorLegitimateInterest: () => Promise; TCFisVendorAccepted: () => boolean; TCFisVendorLegitimateInterestAccepted: () => boolean; TCFisCategoryAccepted: () => boolean; TCFisCategoryLegitimateInterestAccepted: () => boolean; TCFacceptGatpVendor: () => Promise; TCFdeclineGatpVendor: () => Promise; TCFisGatpVendorAccepted: () => boolean; }; declare const context: React.Context; export default context;