import { FdoMenuSubCategory } from "@feedmepos/menu/entity";
import { useDialog } from "@feedmepos/ui-library";
import { useMenuLoader } from "@/helper/menu";
type MenuLoader = ReturnType<typeof useMenuLoader>;
declare const useSubcategoryManager: ({ dialog, menuLoader, isLocalOnly }: {
    dialog: ReturnType<typeof useDialog>;
    menuLoader: MenuLoader;
    isLocalOnly?: boolean | undefined;
}) => {
    create: () => void;
    update: (subcategory: z.infer<z.ZodObject<{
        _id: z.ZodString;
        name: z.ZodString;
        position: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
    }, "strip", z.ZodTypeAny, {
        position?: number | null | undefined;
        name: string;
        _id: string;
    }, {
        position?: number | null | undefined;
        name: string;
        _id: string;
    }>>) => void;
    deleteSubcategory: (subcategory: z.infer<z.ZodObject<{
        _id: z.ZodString;
        name: z.ZodString;
        position: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
    }, "strip", z.ZodTypeAny, {
        position?: number | null | undefined;
        name: string;
        _id: string;
    }, {
        position?: number | null | undefined;
        name: string;
        _id: string;
    }>>) => void;
    rearrange: (ids: string[]) => void;
};
export default useSubcategoryManager;
