import { Metadata } from "./metadata"; import { Code } from "./Code"; import { UnaryMethodDefinition } from "./service"; import { Request } from "./invoke"; import { RpcOptions } from "./client"; import { ProtobufMessage } from "./message"; export interface UnaryOutput { status: Code; statusMessage: string; headers: Metadata; message: TResponse | null; trailers: Metadata; } export interface UnaryRpcOptions extends RpcOptions { host: string; request: TRequest; metadata?: Metadata.ConstructorArg; onEnd: (output: UnaryOutput) => void; } export declare function unary>(methodDescriptor: M, props: UnaryRpcOptions): Request;