declare module 'pull-ping' { type Abort = Error | boolean | null type EndOrError = Abort type SourceCallback = (end: EndOrError, data?: T) => void type Source = (endOrError: Abort, cb: SourceCallback) => void export interface PullPingDuplex { (endOrError: Abort, cb: SourceCallback): void rtt: any skew: any } function pullPing( opts: { timeout: number; serve?: boolean }, cb?: CallableFunction ): PullPingDuplex export = pullPing }