import type { RefAttributes } from "react"; import type { DOMProps } from "../../types/dom"; import type { TRUSTPILOT_WIDGET } from "./constants"; declare global { interface Window { Trustpilot: any; } } export type TrustElementType = HTMLDivElement; export interface TrustProps extends DOMProps, RefAttributes { /** Custom class name for setting specific CSS */ className?: string; elementType?: React.ElementType; locale: "en-US" | "en-GB"; variant: keyof typeof TRUSTPILOT_WIDGET; templateId?: string; height?: string; width?: string; theme: "dark" | "light"; stars?: string; }