import { type EventData, integrations, type LoadIntegrationEventData, type StrippedDownAnalytics, type TrackTypesValues } from '@farfetch/blackout-analytics'; import type { RiskifiedIntegrationOptions } from './types/index.js'; declare class Riskified extends integrations.Integration { baseUrl: string; isReadyPromise: Promise; resolveIsReadyPromise: (value?: unknown) => void; /** * Creates an instance of Riskified and sets the script on the page. * * @param options - Custom options for the integration. * @param loadData - Analytics's load event data. * @param analytics - Stripped down analytics instance. */ constructor(options: RiskifiedIntegrationOptions, loadData: LoadIntegrationEventData, analytics: StrippedDownAnalytics); /** * Returns true due to being a required integration - No need to check for consent. * * @returns A value indicating if the integration should load. */ static shouldLoad(): boolean; /** * Creates the script based on the correlation `id` and appends it on the page. * Once the script is on the page, it will automatically set `isReady` property to true. * * @param loadData - Analytics's load event data. * * @returns The Riskified instance to allow chaining calls. */ setupScript(loadData: LoadIntegrationEventData): this; /** * Tracks events (page views or page actions). * * @param data - The event object. * */ track(data: EventData): void; /** * Tracks the page view event. Calls the global Riskified variable RISKX.go with the web location. * * @param location - The location data. * */ trackPage(location: string): Promise; /** * When the script loads onto the DOM, it will set the integration as ready. */ onLoad: () => void; } export default Riskified;