import type { EntityServices } from '../../../services/ports/services.js'; /** A category as the store has it. */ export interface StoredView { id: number; uuid: string; name: string; status: 0 | 1; parentUrlKey: string | null; } /** The services and a way to look at what they wrote. */ export interface ServicesHarness { services: EntityServices; find(urlKey: string): Promise; /** How many categories there are. */ count(): Promise; } /** * What every `EntityServices` must do (§ 4.5, point 6; § 11.3): create and update * a category, refuse what cannot be written with an error, **leave nothing * behind** when it does (each call is one transaction), and give a unique * violation its SQLSTATE in `code`, which the writer turns into a `CONFLICT`. It * runs against `MemoryServices` and against core's own services on a database. */ export declare function entityServicesContract(label: string, make: () => Promise): void;