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.tax";
export declare enum RoundMode {
    HALF = "HALF",
    CEIL = "CEIL",
    FLOOR = "FLOOR",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function roundModeFromJSON(object: any): RoundMode;
export declare function roundModeToJSON(object: RoundMode): string;
export declare function roundModeToNumber(object: RoundMode): number;
export interface TaxList {
    items?: Tax[] | undefined;
    totalCount?: number | undefined;
    subject?: Subject | undefined;
}
export interface TaxListResponse {
    items?: TaxResponse[] | undefined;
    totalCount?: number | undefined;
    operationStatus?: OperationStatus | undefined;
}
export interface TaxResponse {
    payload?: Tax | undefined;
    status?: Status | undefined;
}
export interface Tax {
    id?: string | undefined;
    meta?: Meta | undefined;
    countryId?: string | undefined;
    rate?: number | undefined;
    variant?: string | undefined;
    typeId?: string | undefined;
    name?: string | undefined;
    abbreviation?: string | undefined;
    roundMode?: RoundMode | undefined;
}
export declare const TaxList: MessageFns<TaxList>;
export declare const TaxListResponse: MessageFns<TaxListResponse>;
export declare const TaxResponse: MessageFns<TaxResponse>;
export declare const Tax: MessageFns<Tax>;
/** Microservice definition. */
export type TaxServiceDefinition = typeof TaxServiceDefinition;
export declare const TaxServiceDefinition: {
    readonly name: "TaxService";
    readonly fullName: "io.restorecommerce.tax.TaxService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof TaxListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof TaxList;
            readonly requestStream: false;
            readonly responseType: typeof TaxListResponse;
            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 TaxList;
            readonly requestStream: false;
            readonly responseType: typeof TaxListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof TaxList;
            readonly requestStream: false;
            readonly responseType: typeof TaxListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface TaxServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<TaxListResponse>>;
    create(request: TaxList, context: CallContext & CallContextExt): Promise<DeepPartial<TaxListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
    update(request: TaxList, context: CallContext & CallContextExt): Promise<DeepPartial<TaxListResponse>>;
    upsert(request: TaxList, context: CallContext & CallContextExt): Promise<DeepPartial<TaxListResponse>>;
}
export interface TaxServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<TaxListResponse>;
    create(request: DeepPartial<TaxList>, options?: CallOptions & CallOptionsExt): Promise<TaxListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
    update(request: DeepPartial<TaxList>, options?: CallOptions & CallOptionsExt): Promise<TaxListResponse>;
    upsert(request: DeepPartial<TaxList>, options?: CallOptions & CallOptionsExt): Promise<TaxListResponse>;
}
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=tax.d.ts.map