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.unit_code";
export declare enum StatusCode {
    ADDED = "ADDED",
    CHANGED_NAME = "CHANGED_NAME",
    CHANGED_CHARACTERISTIC = "CHANGED_CHARACTERISTIC",
    DEPRECATED = "DEPRECATED",
    MARKED_AS_DELETED = "MARKED_AS_DELETED",
    REINSTATED = "REINSTATED",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function statusCodeFromJSON(object: any): StatusCode;
export declare function statusCodeToJSON(object: StatusCode): string;
export declare function statusCodeToNumber(object: StatusCode): number;
export declare enum Sector {
    UNKNOWN = "UNKNOWN",
    ACOUSTICS = "ACOUSTICS",
    ATOMIC_AND_NUCLEAR_PHYSICS = "ATOMIC_AND_NUCLEAR_PHYSICS",
    CHARACTERISTIC_NUMBERS = "CHARACTERISTIC_NUMBERS",
    ELECTRICITY_AND_MAGNETISM = "ELECTRICITY_AND_MAGNETISM",
    HEAT = "HEAT",
    LIGHT_AND_RELATED_ELECTROMAGNETIC_RADIATIONS = "LIGHT_AND_RELATED_ELECTROMAGNETIC_RADIATIONS",
    MECHANICS = "MECHANICS",
    MISCELLANEOUS = "MISCELLANEOUS",
    NUCLEAR_REACTIONS_AND_IONIZING_RADIATIONS = "NUCLEAR_REACTIONS_AND_IONIZING_RADIATIONS",
    PERIODIC_AND_RELATED_PHASES = "PERIODIC_AND_RELATED_PHASES",
    PHYSICAL_CHEMISTRY_AND_MOLECULAR_PHYSICS = "PHYSICAL_CHEMISTRY_AND_MOLECULAR_PHYSICS",
    SOLID_STATE_PHYSICS = "SOLID_STATE_PHYSICS",
    SPACE_AND_TIME = "SPACE_AND_TIME",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function sectorFromJSON(object: any): Sector;
export declare function sectorToJSON(object: Sector): string;
export declare function sectorToNumber(object: Sector): number;
export interface UnitCodeList {
    items?: UnitCode[] | undefined;
    totalCount?: number | undefined;
    subject?: Subject | undefined;
}
export interface UnitCodeListResponse {
    items?: UnitCodeResponse[] | undefined;
    totalCount?: number | undefined;
    operationStatus?: OperationStatus | undefined;
}
export interface UnitCodeResponse {
    payload?: UnitCode | undefined;
    status?: Status | undefined;
}
export interface UnitCode {
    id?: string | undefined;
    meta?: Meta | undefined;
    status?: StatusCode | undefined;
    commonCode?: string | undefined;
    name?: string | undefined;
    description?: string | undefined;
    levelCategory?: string | undefined;
    symbol?: string | undefined;
    conversionFactor?: string | undefined;
    groupNumber?: string | undefined;
    sector?: Sector | undefined;
    groupId?: string | undefined;
    quantity?: string | undefined;
}
export declare const UnitCodeList: MessageFns<UnitCodeList>;
export declare const UnitCodeListResponse: MessageFns<UnitCodeListResponse>;
export declare const UnitCodeResponse: MessageFns<UnitCodeResponse>;
export declare const UnitCode: MessageFns<UnitCode>;
export type UnitCodeServiceDefinition = typeof UnitCodeServiceDefinition;
export declare const UnitCodeServiceDefinition: {
    readonly name: "UnitCodeService";
    readonly fullName: "io.restorecommerce.unit_code.UnitCodeService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof UnitCodeListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof UnitCodeList;
            readonly requestStream: false;
            readonly responseType: typeof UnitCodeListResponse;
            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 UnitCodeList;
            readonly requestStream: false;
            readonly responseType: typeof UnitCodeListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof UnitCodeList;
            readonly requestStream: false;
            readonly responseType: typeof UnitCodeListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface UnitCodeServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<UnitCodeListResponse>>;
    create(request: UnitCodeList, context: CallContext & CallContextExt): Promise<DeepPartial<UnitCodeListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
    update(request: UnitCodeList, context: CallContext & CallContextExt): Promise<DeepPartial<UnitCodeListResponse>>;
    upsert(request: UnitCodeList, context: CallContext & CallContextExt): Promise<DeepPartial<UnitCodeListResponse>>;
}
export interface UnitCodeServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<UnitCodeListResponse>;
    create(request: DeepPartial<UnitCodeList>, options?: CallOptions & CallOptionsExt): Promise<UnitCodeListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
    update(request: DeepPartial<UnitCodeList>, options?: CallOptions & CallOptionsExt): Promise<UnitCodeListResponse>;
    upsert(request: DeepPartial<UnitCodeList>, options?: CallOptions & CallOptionsExt): Promise<UnitCodeListResponse>;
}
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=unit_code.d.ts.map