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.address";
export interface Deleted {
    id?: string | undefined;
}
export interface AddressList {
    items?: Address[] | undefined;
    totalCount?: number | undefined;
    subject?: Subject | undefined;
}
export interface AddressListResponse {
    items?: AddressResponse[] | undefined;
    totalCount?: number | undefined;
    operationStatus?: OperationStatus | undefined;
}
export interface AddressResponse {
    payload?: Address | undefined;
    status?: Status | undefined;
}
export interface GeoPoint {
    latitude?: number | undefined;
    longitude?: number | undefined;
}
export interface AddressAddition {
    field1?: string | undefined;
    field2?: string | undefined;
}
export interface BusinessAddress {
    name?: string | undefined;
}
export interface ResidentialAddress {
    title?: string | undefined;
    givenName?: string | undefined;
    midName?: string | undefined;
    familyName?: string | undefined;
}
export interface PackStation {
    provider?: string | undefined;
    stationNumber?: string | undefined;
    postNumber?: string | undefined;
}
export interface Address {
    id?: string | undefined;
    meta?: Meta | undefined;
    postcode?: string | undefined;
    countryId?: string | undefined;
    locality?: string | undefined;
    street?: string | undefined;
    region?: string | undefined;
    geoCoordinates?: GeoPoint | undefined;
    altitude?: number | undefined;
    buildingNumber?: string | undefined;
    addressAddition?: AddressAddition | undefined;
    businessAddress?: BusinessAddress | undefined;
    residentialAddress?: ResidentialAddress | undefined;
    packStation?: PackStation | undefined;
}
export interface Contact {
    name?: string | undefined;
    email?: string | undefined;
    phone?: string | undefined;
}
export interface ShippingAddress {
    address?: Address | undefined;
    contact?: Contact | undefined;
    comments?: string | undefined;
}
export interface BillingAddress {
    address?: Address | undefined;
    contact?: Contact | undefined;
    comments?: string | undefined;
}
export declare const Deleted: MessageFns<Deleted>;
export declare const AddressList: MessageFns<AddressList>;
export declare const AddressListResponse: MessageFns<AddressListResponse>;
export declare const AddressResponse: MessageFns<AddressResponse>;
export declare const GeoPoint: MessageFns<GeoPoint>;
export declare const AddressAddition: MessageFns<AddressAddition>;
export declare const BusinessAddress: MessageFns<BusinessAddress>;
export declare const ResidentialAddress: MessageFns<ResidentialAddress>;
export declare const PackStation: MessageFns<PackStation>;
export declare const Address: MessageFns<Address>;
export declare const Contact: MessageFns<Contact>;
export declare const ShippingAddress: MessageFns<ShippingAddress>;
export declare const BillingAddress: MessageFns<BillingAddress>;
/** Microservice definition. */
export type AddressServiceDefinition = typeof AddressServiceDefinition;
export declare const AddressServiceDefinition: {
    readonly name: "AddressService";
    readonly fullName: "io.restorecommerce.address.AddressService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof AddressListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof AddressList;
            readonly requestStream: false;
            readonly responseType: typeof AddressListResponse;
            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 AddressList;
            readonly requestStream: false;
            readonly responseType: typeof AddressListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof AddressList;
            readonly requestStream: false;
            readonly responseType: typeof AddressListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface AddressServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AddressListResponse>>;
    create(request: AddressList, context: CallContext & CallContextExt): Promise<DeepPartial<AddressListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
    update(request: AddressList, context: CallContext & CallContextExt): Promise<DeepPartial<AddressListResponse>>;
    upsert(request: AddressList, context: CallContext & CallContextExt): Promise<DeepPartial<AddressListResponse>>;
}
export interface AddressServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<AddressListResponse>;
    create(request: DeepPartial<AddressList>, options?: CallOptions & CallOptionsExt): Promise<AddressListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
    update(request: DeepPartial<AddressList>, options?: CallOptions & CallOptionsExt): Promise<AddressListResponse>;
    upsert(request: DeepPartial<AddressList>, options?: CallOptions & CallOptionsExt): Promise<AddressListResponse>;
}
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=address.d.ts.map