import type { Config } from '../types/index.js'; import type { TrackingData } from './types/index.js'; /** * Method responsible for posting data to /trackings endpoint on MKT API. * * @example * ``` * import \{ postTracking \} from '\@farfetch/blackout-client/omnitracking'; * * postTracking(\{ * event: 'GenericPageVisited', * correlationId: 'cc0dc41e-f058-40ec-a073-1fe3d56265bb', * tenantId: 16000, * clientId: 16000, * customerId: 'g_123', * parameters: \{\} * \}); * * ``` * * @param data - Payload to be sent on the body of the post request. * @param config - Custom configurations to send to the client instance (axios). * * @returns Promise object. */ declare const postTracking: { (data: TrackingData, config?: Config): Promise; POST_TRACKINGS_PATHNAME: string; }; export default postTracking;