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 { Subject } from "./auth";
import { Meta } from "./meta";
import { DeleteRequest, DeleteResponse, ReadRequest } from "./resource_base";
import { OperationStatus, Status } from "./status";
export declare const protobufPackage = "io.restorecommerce.command";
/** command resource */
export interface Command {
    id?: string | undefined;
    meta?: Meta | undefined;
    /** command name */
    name?: string | undefined;
    /** all possible parameters */
    parameters?: CommandParameter[] | undefined;
    /** command description */
    description?: string | undefined;
}
export interface CommandParameter {
    /** field name */
    field?: string | undefined;
    /** field description */
    description?: string | undefined;
    /** field's type */
    type?: CommandParameter_ParameterType | undefined;
    /** dump properties in case of `object_value`` */
    properties?: string | undefined;
}
export declare enum CommandParameter_ParameterType {
    boolean_value = "boolean_value",
    object_value = "object_value",
    array_value = "array_value",
    number_value = "number_value",
    string_value = "string_value",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function commandParameter_ParameterTypeFromJSON(object: any): CommandParameter_ParameterType;
export declare function commandParameter_ParameterTypeToJSON(object: CommandParameter_ParameterType): string;
export declare function commandParameter_ParameterTypeToNumber(object: CommandParameter_ParameterType): number;
export interface CommandList {
    items?: Command[] | undefined;
    totalCount?: number | undefined;
    subject?: Subject | undefined;
}
export interface CommandListResponse {
    items?: CommandResponse[] | undefined;
    totalCount?: number | undefined;
    operationStatus?: OperationStatus | undefined;
}
export interface CommandResponse {
    payload?: Command | undefined;
    status?: Status | undefined;
}
export declare const Command: MessageFns<Command>;
export declare const CommandParameter: MessageFns<CommandParameter>;
export declare const CommandList: MessageFns<CommandList>;
export declare const CommandListResponse: MessageFns<CommandListResponse>;
export declare const CommandResponse: MessageFns<CommandResponse>;
export type CommandServiceDefinition = typeof CommandServiceDefinition;
export declare const CommandServiceDefinition: {
    readonly name: "CommandService";
    readonly fullName: "io.restorecommerce.command.CommandService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof CommandListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof CommandList;
            readonly requestStream: false;
            readonly responseType: typeof CommandListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly delete: {
            readonly name: "Delete";
            readonly requestType: typeof DeleteRequest;
            readonly requestStream: false;
            readonly responseType: typeof DeleteResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly update: {
            readonly name: "Update";
            readonly requestType: typeof CommandList;
            readonly requestStream: false;
            readonly responseType: typeof CommandListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof CommandList;
            readonly requestStream: false;
            readonly responseType: typeof CommandListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface CommandServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandListResponse>>;
    create(request: CommandList, context: CallContext & CallContextExt): Promise<DeepPartial<CommandListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
    update(request: CommandList, context: CallContext & CallContextExt): Promise<DeepPartial<CommandListResponse>>;
    upsert(request: CommandList, context: CallContext & CallContextExt): Promise<DeepPartial<CommandListResponse>>;
}
export interface CommandServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandListResponse>;
    create(request: DeepPartial<CommandList>, options?: CallOptions & CallOptionsExt): Promise<CommandListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
    update(request: DeepPartial<CommandList>, options?: CallOptions & CallOptionsExt): Promise<CommandListResponse>;
    upsert(request: DeepPartial<CommandList>, options?: CallOptions & CallOptionsExt): Promise<CommandListResponse>;
}
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=command.d.ts.map