UNPKG

@vtex/api

Version:
13 lines (12 loc) 556 B
import { InstanceOptions, RequestTracingConfig } from '../../HttpClient'; import { IOContext } from '../../service/worker/runtime/typings'; import { InfraClient } from './InfraClient'; export declare class Events extends InfraClient { constructor({ recorder, ...context }: IOContext, options?: InstanceOptions); sendEvent: (appIdOrResource: string | ResourceVRN, route: string, message?: any, tracingConfig?: RequestTracingConfig) => Promise<void>; private resourceFor; } export interface ResourceVRN { service: string; path: string; }