import type { AddressWrite, CategoryWrite, CustomerWrite, EntityServices, ProductWrite } from '../services/ports/services.js'; import type { MemoryLookup } from './MemoryLookup.js'; /** * TEST-ONLY. The category services over the same store that `MemoryLookup` * answers from, so a category that is created is found by the next question. It * keeps the rules that matter to the writer: a unique `url_key`, a parent that * must exist, a name and a `url_key` to create, and the id and uuid of a category. */ export declare class MemoryServices implements EntityServices { private readonly store; /** What each category has been given, merged over its updates, by uuid. */ readonly written: Map; /** What each product has been given, merged over its updates, by uuid. */ readonly writtenProducts: Map; /** The images of each product, by uuid (the last set that was written). */ readonly images: Map; /** The old addresses written for each product, by uuid. */ readonly redirects: Map; /** The redirect rows, by old address: what `url_redirect` would hold. */ readonly redirectRows: Map; /** The password that nobody knows, one for all the accounts made without one. */ readonly unusableHash = "memory-unusable-password-hash"; /** How each customer's password was given, by uuid (nothing is hashed here). */ readonly customerPasswords: Map; constructor(store: MemoryLookup); private byId; createCategory(input: CategoryWrite): Promise<{ id: number; uuid: string; }>; updateCategory(uuid: string, input: CategoryWrite): Promise; private productByUuid; private groupRecord; createProduct(input: ProductWrite): Promise<{ id: number; uuid: string; }>; private applyAttributes; updateProduct(uuid: string, input: ProductWrite): Promise; createVariantGroup(input: { attributeGroupId: number; axisCodes: string[]; }): Promise<{ id: number; uuid: string; }>; addVariantItem(groupUuid: string, productUuid: string): Promise; private customerByUuid; createCustomerAddress(customerUuid: string, input: AddressWrite): Promise<{ id: number; uuid: string; }>; createCustomer(input: CustomerWrite): Promise<{ id: number; uuid: string; }>; updateCustomer(uuid: string, input: CustomerWrite): Promise; setCustomerMetafields(customerId: number, values: Record>): Promise; recordRedirects(productUuid: string, fromPaths: string[]): Promise; }