import type { StreamInstance } from '../instance.js' export type PingOutput = 'pong' export type Ping = () => Promise export const createPing = (instance: Readonly): Ping => { return async () => { return instance.request({ method: 'ping' }) } }