import { ClientStreamingCall, DuplexStreamingCall, MethodInfo, RpcOptions, RpcTransport, ServerStreamingCall, UnaryCall } from "@protobuf-ts/runtime-rpc"; import { GrpcWebOptions } from "./grpc-web-options"; /** * Implements the grpc-web protocol, supporting text format or binary * format on the wire. Uses the fetch API to do the HTTP requests. * * Does not support client streaming or duplex calls because grpc-web * does not support them. */ export declare class GrpcWebFetchTransport implements RpcTransport { private readonly defaultOptions; constructor(defaultOptions: GrpcWebOptions); mergeOptions(options?: Partial): RpcOptions; /** * Create an URI for a gRPC web call. * * Takes the `baseUrl` option and appends: * - slash "/" * - package name * - dot "." * - service name * - slash "/" * - method name * * If the service was declared without a package, the package name and dot * are omitted. * * All names are used exactly like declared in .proto. */ protected makeUrl(method: MethodInfo, options: GrpcWebOptions): string; clientStreaming(method: MethodInfo): ClientStreamingCall; duplex(method: MethodInfo): DuplexStreamingCall; serverStreaming(method: MethodInfo, input: I, options: RpcOptions): ServerStreamingCall; unary(method: MethodInfo, input: I, options: RpcOptions): UnaryCall; }