import { type Context } from './Context' import type * as syntax from './syntax' export interface Endpoint { call: T['call'] close: () => Promise } export interface EndpointsFactory = any> { create: (method: syntax.Method, context: Context) => T }