import type { RumEvent, RumEventDomainContext, RumInitConfiguration } from '@datadog/browser-rum'; /** * Used for `application.beforeSend`. Returning `false` drops the event app-wide; * `void` / `true` passes it through. */ export type ApplicationBeforeSendHandler = (event: RumEvent, context: RumEventDomainContext) => boolean | void; /** * Used for per-service `beforeSend`. Transform-only: the return value is * ignored. Only `application.beforeSend` may drop events. */ export type ServiceBeforeSendHandler = (event: RumEvent, context: RumEventDomainContext) => void; export declare function beforeSend(handler?: RumInitConfiguration['beforeSend']): NonNullable; //# sourceMappingURL=before-send.d.ts.map