import { Item } from "@swishapp/api-client"; import * as v from "valibot"; import type { Product, ProductVariant } from "../../types"; import { IntentHandler } from "../intent-handler"; import { IntentResponse, SuccessIntentResponse } from "../types"; export declare const EditItemVariantIntentDataSchema: v.ObjectSchema<{ readonly itemId: v.SchemaWithPipe]>; readonly productId: v.SchemaWithPipe, v.TransformAction]>, v.NumberSchema], undefined>, v.TransformAction, v.NumberSchema]>; readonly variantId: v.OptionalSchema, v.TransformAction]>, v.NumberSchema], undefined>, v.TransformAction, v.NumberSchema]>, undefined>; }, undefined>; export interface EditItemVariantIntentData extends Omit { productId: number | string; variantId?: number | string; } export type EditItemVariantIntentDataValidated = v.InferInput; export type EditItemVariantSuccessResponse = SuccessIntentResponse<{ item: Item; product: Product | null | undefined; variant: ProductVariant | null | undefined; }>; export declare class EditItemVariantHandler extends IntentHandler<"edit:item-variant"> { invoke(data: EditItemVariantIntentData): Promise>; }