Files
scrap/node_modules/next/dist/trace/report/to-json.d.ts
2024-09-24 03:52:46 +00:00

19 lines
523 B
TypeScript

import type { TraceEvent } from '../types';
declare const localEndpoint: {
serviceName: string;
ipv4: string;
port: number;
};
type Event = TraceEvent & {
localEndpoint?: typeof localEndpoint;
};
export declare function batcher(reportEvents: (evts: Event[]) => Promise<void>): {
flushAll: () => Promise<void>;
report: (event: Event) => void;
};
declare const _default: {
flushAll: () => Promise<void | undefined> | undefined;
report: (event: TraceEvent) => void;
};
export default _default;