import { z } from 'zod'; import { Caching, Pagination } from '../../shared.js'; import type { ThreekitAuthProps } from '../../ThreekitAuthProps.js'; import { Route } from '../Route.js'; export declare const CartItem: z.ZodObject<{ configurationId: z.ZodString; count: z.ZodNumber; metadata: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { configurationId: string; count: number; metadata?: Record | undefined; }, { configurationId: string; count: number; metadata?: Record | undefined; }>; export type CartItem = z.infer; export declare const Order: z.ZodObject; deletedAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, { id: z.ZodString; orgId: z.ZodString; shortId: z.ZodString; name: z.ZodNullable; status: z.ZodUnion<[z.ZodLiteral<"List">, z.ZodLiteral<"In Cart">, z.ZodLiteral<"New">, z.ZodLiteral<"In Progress">, z.ZodLiteral<"Complete">]>; metadata: z.ZodRecord, z.objectInputType<{}, z.ZodUnknown, "strip">>]>>; platform: z.ZodObject<{ id: z.ZodNullable>; platform: z.ZodOptional; storeName: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }, { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }>; cart: z.ZodArray>>; }, "strip", z.ZodTypeAny, { configurationId: string; count: number; metadata?: Record | undefined; }, { configurationId: string; count: number; metadata?: Record | undefined; }>, "many">; items: z.ZodArray; derivative: z.ZodRecord; customerId: z.ZodNullable; }>, "strip", z.ZodTypeAny, { orgId: string; status: "List" | "In Cart" | "New" | "In Progress" | "Complete"; createdAt: string; id: string; name: string | null; metadata: Record>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, { orgId: string; status: "List" | "In Cart" | "New" | "In Progress" | "Complete"; createdAt: string; id: string; name: string | null; metadata: Record>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }>; export type Order = z.infer; export declare const OrderListing: z.ZodObject; perPage: z.ZodOptional; sort: z.ZodOptional; }, { orders: z.ZodArray; deletedAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, { id: z.ZodString; orgId: z.ZodString; shortId: z.ZodString; name: z.ZodNullable; status: z.ZodUnion<[z.ZodLiteral<"List">, z.ZodLiteral<"In Cart">, z.ZodLiteral<"New">, z.ZodLiteral<"In Progress">, z.ZodLiteral<"Complete">]>; metadata: z.ZodRecord, z.objectInputType<{}, z.ZodUnknown, "strip">>]>>; platform: z.ZodObject<{ id: z.ZodNullable>; platform: z.ZodOptional; storeName: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }, { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }>; cart: z.ZodArray>>; }, "strip", z.ZodTypeAny, { configurationId: string; count: number; metadata?: Record | undefined; }, { configurationId: string; count: number; metadata?: Record | undefined; }>, "many">; items: z.ZodArray; derivative: z.ZodRecord; customerId: z.ZodNullable; }>, "strip", z.ZodTypeAny, { orgId: string; status: "List" | "In Cart" | "New" | "In Progress" | "Complete"; createdAt: string; id: string; name: string | null; metadata: Record>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, { orgId: string; status: "List" | "In Cart" | "New" | "In Progress" | "Complete"; createdAt: string; id: string; name: string | null; metadata: Record>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }>, "many">; }>, "strip", z.ZodTypeAny, { orders: { orgId: string; status: "List" | "In Cart" | "New" | "In Progress" | "Complete"; createdAt: string; id: string; name: string | null; metadata: Record>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }[]; sort?: string | undefined; page?: number | undefined; perPage?: number | undefined; }, { orders: { orgId: string; status: "List" | "In Cart" | "New" | "In Progress" | "Complete"; createdAt: string; id: string; name: string | null; metadata: Record>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }[]; sort?: string | undefined; page?: number | undefined; perPage?: number | undefined; }>; export type OrderListing = z.infer; export declare const CreateOrderProps: z.ZodObject<{ orgId: z.ZodString; status: z.ZodOptional, z.ZodLiteral<"In Cart">, z.ZodLiteral<"New">, z.ZodLiteral<"In Progress">, z.ZodLiteral<"Complete">]>>; name: z.ZodOptional>; metadata: z.ZodOptional, z.objectInputType<{}, z.ZodUnknown, "strip">>]>>>; customerId: z.ZodOptional>; cart: z.ZodArray>>; }, "strip", z.ZodTypeAny, { configurationId: string; count: number; metadata?: Record | undefined; }, { configurationId: string; count: number; metadata?: Record | undefined; }>, "many">; platform: z.ZodObject<{ id: z.ZodNullable>; platform: z.ZodOptional; storeName: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }, { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { orgId: string; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; status?: "List" | "In Cart" | "New" | "In Progress" | "Complete" | undefined; name?: string | null | undefined; metadata?: Record> | undefined; customerId?: string | null | undefined; }, { orgId: string; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; status?: "List" | "In Cart" | "New" | "In Progress" | "Complete" | undefined; name?: string | null | undefined; metadata?: Record> | undefined; customerId?: string | null | undefined; }>; export type CreateOrderProps = z.infer; export type QueryOrderProps = object; export declare class Orders extends Route { constructor(auth: ThreekitAuthProps); healthcheck(): Promise>; create(createProps: CreateOrderProps): Promise>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, any>>; get(queryProps?: QueryOrderProps, pagination?: Pagination): Promise>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }[]; sort?: string | undefined; page?: number | undefined; perPage?: number | undefined; }, any>>; getById(id: string, caching?: Caching): Promise>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, any>>; addToOrder(id: string, itemsToAdd: CartItem[]): Promise>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, any>>; removeFromOrder(id: string, itemsToRemove: CartItem[]): Promise>; customerId: string | null; cart: { configurationId: string; count: number; metadata?: Record | undefined; }[]; platform: { id?: string | null | undefined; platform?: string | undefined; storeName?: string | null | undefined; }; shortId: string; items: string[]; derivative: Record; createdBy?: string | undefined; deletedAt?: string | null | undefined; updatedAt?: string | null | undefined; }, any>>; }