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 { Image } from "./image";
import { Meta } from "./meta";
import { DeleteRequest, DeleteResponse, ReadRequest } from "./resource_base";
import { OperationStatus, Status } from "./status";
export declare const protobufPackage = "io.restorecommerce.product_category";
/** ProductCategory resource */
export interface ProductCategory {
    id?: string | undefined;
    meta?: Meta | undefined;
    name?: string | undefined;
    description?: string | undefined;
    price_group_id?: string | undefined;
    image?: Image | undefined;
    parent?: Parent | undefined;
}
export interface ProductCategoryList {
    items?: ProductCategory[] | undefined;
    total_count?: number | undefined;
    subject?: Subject | undefined;
}
export interface ProductCategoryListResponse {
    items?: ProductCategoryResponse[] | undefined;
    total_count?: number | undefined;
    operation_status?: OperationStatus | undefined;
}
export interface ProductCategoryResponse {
    payload?: ProductCategory | undefined;
    status?: Status | undefined;
}
export interface Deleted {
    id?: string | undefined;
}
export interface Parent {
    parent_id?: string | undefined;
}
export declare const ProductCategory: MessageFns<ProductCategory>;
export declare const ProductCategoryList: MessageFns<ProductCategoryList>;
export declare const ProductCategoryListResponse: MessageFns<ProductCategoryListResponse>;
export declare const ProductCategoryResponse: MessageFns<ProductCategoryResponse>;
export declare const Deleted: MessageFns<Deleted>;
export declare const Parent: MessageFns<Parent>;
export type ProductCategoryServiceDefinition = typeof ProductCategoryServiceDefinition;
export declare const ProductCategoryServiceDefinition: {
    readonly name: "ProductCategoryService";
    readonly fullName: "io.restorecommerce.product_category.ProductCategoryService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof ProductCategoryListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof ProductCategoryList;
            readonly requestStream: false;
            readonly responseType: typeof ProductCategoryListResponse;
            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 ProductCategoryList;
            readonly requestStream: false;
            readonly responseType: typeof ProductCategoryListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof ProductCategoryList;
            readonly requestStream: false;
            readonly responseType: typeof ProductCategoryListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface ProductCategoryServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProductCategoryListResponse>>;
    create(request: ProductCategoryList, context: CallContext & CallContextExt): Promise<DeepPartial<ProductCategoryListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
    update(request: ProductCategoryList, context: CallContext & CallContextExt): Promise<DeepPartial<ProductCategoryListResponse>>;
    upsert(request: ProductCategoryList, context: CallContext & CallContextExt): Promise<DeepPartial<ProductCategoryListResponse>>;
}
export interface ProductCategoryServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<ProductCategoryListResponse>;
    create(request: DeepPartial<ProductCategoryList>, options?: CallOptions & CallOptionsExt): Promise<ProductCategoryListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
    update(request: DeepPartial<ProductCategoryList>, options?: CallOptions & CallOptionsExt): Promise<ProductCategoryListResponse>;
    upsert(request: DeepPartial<ProductCategoryList>, options?: CallOptions & CallOptionsExt): Promise<ProductCategoryListResponse>;
}
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=product_category.d.ts.map