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 { Attribute } from "./attribute";
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.fulfillment_courier";
export declare enum SupportedAPI {
    DHLRest = "DHLRest",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function supportedAPIFromJSON(object: any): SupportedAPI;
export declare function supportedAPIToJSON(object: SupportedAPI): string;
export declare function supportedAPIToNumber(object: SupportedAPI): number;
export interface FulfillmentCourier {
    id?: string | undefined;
    meta?: Meta | undefined;
    shop_ids?: string[] | undefined;
    name?: string | undefined;
    description?: string | undefined;
    logo?: string | undefined;
    website?: string | undefined;
    credential_id?: string | undefined;
    configuration?: Any | undefined;
    /** should be SupportedAPI (but unconstrained) */
    api?: string | undefined;
    attributes?: Attribute[] | undefined;
}
export interface FulfillmentCourierList {
    items?: FulfillmentCourier[] | undefined;
    total_count?: number | undefined;
    subject?: Subject | undefined;
}
export interface FulfillmentCourierResponse {
    payload?: FulfillmentCourier | undefined;
    status?: Status | undefined;
}
export interface FulfillmentCourierListResponse {
    items?: FulfillmentCourierResponse[] | undefined;
    total_count?: number | undefined;
    operation_status?: OperationStatus | undefined;
}
export declare const FulfillmentCourier: MessageFns<FulfillmentCourier>;
export declare const FulfillmentCourierList: MessageFns<FulfillmentCourierList>;
export declare const FulfillmentCourierResponse: MessageFns<FulfillmentCourierResponse>;
export declare const FulfillmentCourierListResponse: MessageFns<FulfillmentCourierListResponse>;
export type FulfillmentCourierServiceDefinition = typeof FulfillmentCourierServiceDefinition;
export declare const FulfillmentCourierServiceDefinition: {
    readonly name: "FulfillmentCourierService";
    readonly fullName: "io.restorecommerce.fulfillment_courier.FulfillmentCourierService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentCourierListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof FulfillmentCourierList;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentCourierListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly update: {
            readonly name: "Update";
            readonly requestType: typeof FulfillmentCourierList;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentCourierListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof FulfillmentCourierList;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentCourierListResponse;
            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: {};
        };
    };
};
export interface FulfillmentCourierServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentCourierListResponse>>;
    create(request: FulfillmentCourierList, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentCourierListResponse>>;
    update(request: FulfillmentCourierList, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentCourierListResponse>>;
    upsert(request: FulfillmentCourierList, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentCourierListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
}
export interface FulfillmentCourierServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentCourierListResponse>;
    create(request: DeepPartial<FulfillmentCourierList>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentCourierListResponse>;
    update(request: DeepPartial<FulfillmentCourierList>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentCourierListResponse>;
    upsert(request: DeepPartial<FulfillmentCourierList>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentCourierListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
}
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=fulfillment_courier.d.ts.map