export type Attrs = Record; export interface SentryOptions { dsn: string; tracesSampleRate?: number; } export interface NewRelicOptions { browserKey: string; applicationId: string; accountId: string; region?: 'us' | 'eu'; } /** Public identifiers only. A value that looks like a secret is refused and no tool starts. */ export interface InitOptions { sentry?: SentryOptions; 'new-relic'?: NewRelicOptions; } export interface BrowserTool { /** Allow-list. Returns a fixed reason string if a value is malformed. Runs before any vendor code loads. */ check(options: O): string | null; /** May throw; index catches and warns once. */ init(options: O): Promise; send(name: string, value: number, attrs: Attrs): void; } /** Starts the named tools. Call once, in the browser. Never throws, never rejects. No-op without `window`. */ export declare function init(options: InitOptions): Promise; /** Records a custom event on every started tool that can take it. No-op before init. Never throws. */ export declare function send(name: string, value: number, attrs?: Attrs): void;