import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import type { CallContext, CallOptions } from "nice-grpc-common";
import type { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors";
import { Any } from "../google/protobuf/any";
export declare const protobufPackage = "echo";
export interface EchoRequest {
    message?: string | undefined;
    test?: Any | undefined;
}
export interface EchoResponse {
    message?: string | undefined;
    test?: Any | undefined;
}
export declare const EchoRequest: MessageFns<EchoRequest>;
export declare const EchoResponse: MessageFns<EchoResponse>;
/** The greeting service definition. */
export type EchoServiceDefinition = typeof EchoServiceDefinition;
export declare const EchoServiceDefinition: {
    readonly name: "EchoService";
    readonly fullName: "echo.EchoService";
    readonly methods: {
        /** Sends a greeting */
        readonly echoUnary: {
            readonly name: "echoUnary";
            readonly requestType: typeof EchoRequest;
            readonly requestStream: false;
            readonly responseType: typeof EchoResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly echoServerStream: {
            readonly name: "echoServerStream";
            readonly requestType: typeof EchoRequest;
            readonly requestStream: false;
            readonly responseType: typeof EchoResponse;
            readonly responseStream: true;
            readonly options: {};
        };
        readonly echoClientStream: {
            readonly name: "echoClientStream";
            readonly requestType: typeof EchoRequest;
            readonly requestStream: true;
            readonly responseType: typeof EchoResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly echoBidiStream: {
            readonly name: "echoBidiStream";
            readonly requestType: typeof EchoRequest;
            readonly requestStream: true;
            readonly responseType: typeof EchoResponse;
            readonly responseStream: true;
            readonly options: {};
        };
    };
};
export interface EchoServiceImplementation<CallContextExt = {}> {
    /** Sends a greeting */
    echoUnary(request: EchoRequest, context: CallContext & CallContextExt): Promise<DeepPartial<EchoResponse>>;
    echoServerStream(request: EchoRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<EchoResponse>>;
    echoClientStream(request: AsyncIterable<EchoRequest>, context: CallContext & CallContextExt): Promise<DeepPartial<EchoResponse>>;
    echoBidiStream(request: AsyncIterable<EchoRequest>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<EchoResponse>>;
}
export interface EchoServiceClient<CallOptionsExt = {}> {
    /** Sends a greeting */
    echoUnary(request: DeepPartial<EchoRequest>, options?: CallOptions & CallOptionsExt): Promise<EchoResponse>;
    echoServerStream(request: DeepPartial<EchoRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<EchoResponse>;
    echoClientStream(request: AsyncIterable<DeepPartial<EchoRequest>>, options?: CallOptions & CallOptionsExt): Promise<EchoResponse>;
    echoBidiStream(request: AsyncIterable<DeepPartial<EchoRequest>>, options?: CallOptions & CallOptionsExt): AsyncIterable<EchoResponse>;
}
type ProtoMetaMessageOptions = {
    options?: {
        [key: string]: any;
    };
    fields?: {
        [key: string]: {
            [key: string]: any;
        };
    };
    oneof?: {
        [key: string]: {
            [key: string]: any;
        };
    };
    nested?: {
        [key: string]: ProtoMetaMessageOptions;
    };
};
export interface ProtoMetadata {
    fileDescriptor: FileDescriptorProto1;
    references: {
        [key: string]: any;
    };
    dependencies?: ProtoMetadata[];
    options?: {
        options?: {
            [key: string]: any;
        };
        services?: {
            [key: string]: {
                options?: {
                    [key: string]: any;
                };
                methods?: {
                    [key: string]: {
                        [key: string]: any;
                    };
                };
            };
        };
        messages?: {
            [key: string]: ProtoMetaMessageOptions;
        };
        enums?: {
            [key: string]: {
                options?: {
                    [key: string]: any;
                };
                values?: {
                    [key: string]: {
                        [key: string]: any;
                    };
                };
            };
        };
    };
}
export declare const protoMetadata: ProtoMetadata;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
export type ServerStreamingMethodResult<Response> = {
    [Symbol.asyncIterator](): AsyncIterator<Response, void>;
};
export interface MessageFns<T> {
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    decode(input: BinaryReader | Uint8Array, length?: number): T;
    fromJSON(object: any): T;
    toJSON(message: T): unknown;
    create(base?: DeepPartial<T>): T;
    fromPartial(object: DeepPartial<T>): T;
}
export {};
//# sourceMappingURL=echo.d.ts.map