import type { MutationHook } from "@plasmicpkgs/commerce"; import type { Cart, LineItem, RemoveItemHook } from "../types/cart"; export declare type RemoveItemFn = T extends LineItem ? (input?: RemoveItemActionInput) => Promise : (input: RemoveItemActionInput) => Promise; export declare type RemoveItemActionInput = T extends LineItem ? Partial : RemoveItemHook["actionInput"]; declare const _default: (input?: { item?: import("@plasmicpkgs/commerce/dist/types/cart").LineItem | undefined; } | undefined) => (input: { id: string; }) => import("@plasmicpkgs/commerce/dist/types/cart").Cart | Promise | null | undefined; export default _default; export declare const handler: MutationHook;