import { ICallback } from '../../async/index.js'; export interface IHeartbeatPayload { timestamp: number; componentId: string; componentType: string; data: T; } export interface IHeartbeatConfig { componentId: string; componentType: string; heartbeatKey: string; heartbeatTTL?: number; } export type THeartbeatDataFn = (cb: ICallback) => void; export type THeartbeatEvent = { 'heartbeat.beat': (componentId: string, componentType: string, timestamp: number, payload: IHeartbeatPayload) => void; 'heartbeat.error': (err: Error, componentId: string, componentType: string) => void; 'heartbeat.goingDown': (componentId: string, componentType: string) => void; 'heartbeat.down': (componentId: string, componentType: string) => void; 'heartbeat.goingUp': (componentId: string, componentType: string) => void; 'heartbeat.up': (componentId: string, componentType: string) => void; }; //# sourceMappingURL=heartbeat.d.ts.map