import type { RegistryScriptInput } from '#nuxt-scripts/types'; import { XPixelOptions } from './schemas.js'; interface ContentProperties { content_type?: string | null; content_id?: string | number | null; content_name?: string | null; content_price?: string | number | null; num_items?: string | number | null; content_group_id?: string | number | null; } interface EventObjectProperties { value?: string | number | null; currency?: string | null; conversion_id?: string | number | null; email_address?: string | null; phone_number?: string | null; contents: ContentProperties[]; } type TwqFns = ((event: 'event', eventId: string, data?: EventObjectProperties) => void) & ((event: 'config', id: string) => void) & ((event: (string & {}), ...params: any[]) => void); export interface XPixelApi { twq: TwqFns & { loaded: boolean; version: string; queue: any[]; }; } declare global { interface Window extends XPixelApi { } } export { XPixelOptions }; export type XPixelInput = RegistryScriptInput; export declare function useScriptXPixel(_options?: XPixelInput): import("#nuxt-scripts/types").UseScriptContext;