import { CookieConsentCore } from '../../cookieConsentCore/cookieConsentCore'; import { CookieConsentChangeEvent } from './useCookieConsentEvents'; import { Options } from '../../cookieConsentCore/types'; type CookieCore = CookieConsentCore; type CreateParams = Parameters; type CreateProps = { siteSettings?: CreateParams[0]; options?: Options; }; declare global { interface Window { hds: { cookieConsent: CookieCore; }; } } export type CookieConsentReactProps = Omit & { onChange?: (changeProps: CookieConsentChangeEvent) => void; settingsPageId?: string; }; type GroupConsentData = { group: string; consented: boolean; }; export type CookieConsentReactType = { isReady: boolean; consents: Array; instance: CookieConsentCore | null; openBanner: () => Promise; removeBanner: () => void; openBannerIfNeeded: () => Promise; renderPage: (selector?: string) => Promise; removePage: () => void; settingsPageId: string; language: string; theme: string; }; export declare const defaultSettingsPageId = "hds-cookie-consent-full-page"; export declare function useCookieConsent(props: CookieConsentReactProps): CookieConsentReactType; export {};