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 { ShippingAddress } from "./address";
import { Amount } from "./amount";
import { Attribute } from "./attribute";
import { Subject } from "./auth";
import { Item, Parcel } from "./fulfillment";
import { BoundingBox3D } from "./geometry";
import { Meta } from "./meta";
import { Price } from "./price";
import { Reference } from "./reference";
import { DeleteRequest, DeleteResponse, ReadRequest } from "./resource_base";
import { OperationStatus, Status } from "./status";
export declare const protobufPackage = "io.restorecommerce.fulfillment_product";
export interface Preferences {
    partialFulfillmentAllowed?: boolean | undefined;
    /** Narrows search to certain couriers, leave empty for open search */
    courierIds?: string[] | undefined;
    /** Narrows search to certain tariffs, leave empty for open search */
    fulfillmentProductIds?: string[] | undefined;
    /** Courier specific options such as CO2 neutral delivery etc. */
    options?: Attribute[] | undefined;
}
export interface FulfillmentSolutionQuery {
    customerId?: string | undefined;
    shopId?: string | undefined;
    sender?: ShippingAddress | undefined;
    recipient?: ShippingAddress | undefined;
    items?: Item[] | undefined;
    preferences?: Preferences | undefined;
    reference?: Reference | undefined;
}
export interface FulfillmentSolutionQueryList {
    items?: FulfillmentSolutionQuery[] | undefined;
    totalCount?: number | undefined;
    subject?: Subject | undefined;
}
export interface FulfillmentProduct {
    id?: string | undefined;
    name?: string | undefined;
    description?: string | undefined;
    courierId?: string | undefined;
    startZones?: string[] | undefined;
    destinationZones?: string[] | undefined;
    taxIds?: string[] | undefined;
    attributes?: Attribute[] | undefined;
    variants?: Variant[] | undefined;
    meta?: Meta | undefined;
}
export interface Variant {
    id?: string | undefined;
    name?: string | undefined;
    description?: string | undefined;
    price?: Price | undefined;
    maxSize?: BoundingBox3D | undefined;
    maxWeight?: number | undefined;
    attributes?: Attribute[] | undefined;
}
export interface FulfillmentProductList {
    items?: FulfillmentProduct[] | undefined;
    totalCount?: number | undefined;
    subject?: Subject | undefined;
}
export interface FulfillmentProductResponse {
    payload?: FulfillmentProduct | undefined;
    status?: Status | undefined;
}
export interface FulfillmentProductListResponse {
    items?: FulfillmentProductResponse[] | undefined;
    totalCount?: number | undefined;
    operationStatus?: OperationStatus | undefined;
}
export interface FulfillmentSolution {
    courierIds?: string[] | undefined;
    parcels?: Parcel[] | undefined;
    amounts?: Amount[] | undefined;
}
export interface FulfillmentSolutionResponse {
    reference?: Reference | undefined;
    solutions?: FulfillmentSolution[] | undefined;
    status?: Status | undefined;
}
export interface FulfillmentSolutionListResponse {
    items?: FulfillmentSolutionResponse[] | undefined;
    totalCount?: number | undefined;
    operationStatus?: OperationStatus | undefined;
}
export declare const Preferences: MessageFns<Preferences>;
export declare const FulfillmentSolutionQuery: MessageFns<FulfillmentSolutionQuery>;
export declare const FulfillmentSolutionQueryList: MessageFns<FulfillmentSolutionQueryList>;
export declare const FulfillmentProduct: MessageFns<FulfillmentProduct>;
export declare const Variant: MessageFns<Variant>;
export declare const FulfillmentProductList: MessageFns<FulfillmentProductList>;
export declare const FulfillmentProductResponse: MessageFns<FulfillmentProductResponse>;
export declare const FulfillmentProductListResponse: MessageFns<FulfillmentProductListResponse>;
export declare const FulfillmentSolution: MessageFns<FulfillmentSolution>;
export declare const FulfillmentSolutionResponse: MessageFns<FulfillmentSolutionResponse>;
export declare const FulfillmentSolutionListResponse: MessageFns<FulfillmentSolutionListResponse>;
export type FulfillmentProductServiceDefinition = typeof FulfillmentProductServiceDefinition;
export declare const FulfillmentProductServiceDefinition: {
    readonly name: "FulfillmentProductService";
    readonly fullName: "io.restorecommerce.fulfillment_product.FulfillmentProductService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentProductListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly find: {
            readonly name: "Find";
            readonly requestType: typeof FulfillmentSolutionQueryList;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentSolutionListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof FulfillmentProductList;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentProductListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly update: {
            readonly name: "Update";
            readonly requestType: typeof FulfillmentProductList;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentProductListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof FulfillmentProductList;
            readonly requestStream: false;
            readonly responseType: typeof FulfillmentProductListResponse;
            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 FulfillmentProductServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentProductListResponse>>;
    find(request: FulfillmentSolutionQueryList, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentSolutionListResponse>>;
    create(request: FulfillmentProductList, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentProductListResponse>>;
    update(request: FulfillmentProductList, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentProductListResponse>>;
    upsert(request: FulfillmentProductList, context: CallContext & CallContextExt): Promise<DeepPartial<FulfillmentProductListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
}
export interface FulfillmentProductServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentProductListResponse>;
    find(request: DeepPartial<FulfillmentSolutionQueryList>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentSolutionListResponse>;
    create(request: DeepPartial<FulfillmentProductList>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentProductListResponse>;
    update(request: DeepPartial<FulfillmentProductList>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentProductListResponse>;
    upsert(request: DeepPartial<FulfillmentProductList>, options?: CallOptions & CallOptionsExt): Promise<FulfillmentProductListResponse>;
    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_product.d.ts.map