import type { EventData, TrackTypesValues } from '@farfetch/blackout-analytics'; import type { Schema } from '../types/shared.types.js'; /** * Validates the passed in data against the schema defined for the event. The * schemas are defined using yup. * * @see {@link https://github.com/jquense/yup} for more information * * @param data - Event data provided by analytics. * @param validationSchema - The schema to validate the event against. * * @returns The result of the validation with valid and errorMessage properties. */ declare const eventValidator: (data: EventData, validationSchema?: Schema) => { isValid: boolean; errorMessage: unknown; }; export default eventValidator;