import { type Component, type Reply } from '@toa.io/core'; import { type Remotes } from './Remotes'; import { Mapping } from './Mapping'; import { type Context } from './Context'; import type * as RTD from './RTD'; import type * as http from './HTTP'; export declare class Endpoint implements RTD.Endpoint { private readonly endpoint; private readonly mapping; private readonly discovery; private remote; constructor(endpoint: string, mapping: Mapping, discovery: Promise); call(body: any, query: http.Query, parameters: RTD.Parameter[]): Promise; close(): Promise; } export declare class EndpointsFactory implements RTD.EndpointsFactory { private readonly remotes; constructor(remotes: Remotes); create(method: RTD.syntax.Method, context: Context): Endpoint; }