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";
import { Subject } from "./auth";
export declare const protobufPackage = "io.restorecommerce.commandinterface";
/** used to send requests through Kafka or gRPC */
export interface CommandRequest {
    /** command identifier (used to demultiplex operation in the command implementation) */
    name?: string | undefined;
    /** variable payload */
    payload?: Any | undefined;
    subject?: Subject | undefined;
}
/** used to push responses to Kafka */
export interface CommandResponse {
    /**
     * service identifiers
     * (multiple services may reply to one system command)
     * (multiple service names can be bound to one microservice)
     */
    services?: string[] | undefined;
    /** variable payload */
    payload?: Any | undefined;
}
export declare const CommandRequest: MessageFns<CommandRequest>;
export declare const CommandResponse: MessageFns<CommandResponse>;
/** RPC service for executing commands */
export type CommandInterfaceServiceDefinition = typeof CommandInterfaceServiceDefinition;
export declare const CommandInterfaceServiceDefinition: {
    readonly name: "CommandInterfaceService";
    readonly fullName: "io.restorecommerce.commandinterface.CommandInterfaceService";
    readonly methods: {
        readonly command: {
            readonly name: "Command";
            readonly requestType: typeof CommandRequest;
            readonly requestStream: false;
            readonly responseType: typeof Any;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface CommandInterfaceServiceImplementation<CallContextExt = {}> {
    command(request: CommandRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Any>>;
}
export interface CommandInterfaceServiceClient<CallOptionsExt = {}> {
    command(request: DeepPartial<CommandRequest>, options?: CallOptions & CallOptionsExt): Promise<Any>;
}
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 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=commandinterface.d.ts.map