import { OrderSource, RefundGateway, TicketSink, SignalSource, AvailabilityControl, Order, OperationalSignal, ResourceBaseline, RefundReceipt, CreditReceipt, Ticket, DisabledItem } from './contracts.js'; import { TriagedComplaint, CorrelatedIncident } from '../core/types.js'; /** * In-memory reference implementations of every adapter contract. * The examples seed them with demo data; businesses can use them to test a DomainProfile * before writing adapters for their real systems. */ export declare class InMemoryOrderSource implements OrderSource { private orders; constructor(orders?: Order[]); getOrder(orderId: string): Promise; getOrdersByCustomer(customerId: string): Promise; addOrder(order: Order): void; getAllOrders(): Order[]; } export declare class InMemorySignalSource implements SignalSource { private baselines; private defaultBaseline; private signals; constructor(signals?: OperationalSignal[], baselines?: Record, defaultBaseline?: ResourceBaseline | null); getOrderSignal(orderId: string): Promise; getResourceBaseline(resourceId: string): Promise; } export declare class InMemoryRefundGateway implements RefundGateway { private currency; private refunds; private credits; private customerBalances; constructor(currency: string); issueRefund(orderId: string, amount: number, idempotencyKey: string): Promise; issueCredit(customerId: string, amount: number, idempotencyKey: string): Promise; getRefundStatus(idempotencyKey: string): Promise; getAllRefunds(): RefundReceipt[]; getAllCredits(): CreditReceipt[]; } export declare class InMemoryTicketSink implements TicketSink { private tickets; private incidents; createTicket(complaint: TriagedComplaint): Promise; linkTicketsToIncident(ticketIds: string[], incidentSummary: string, incidentData?: Partial): Promise; routeToManager(ticketOrIncidentId: string, resourceId: string): Promise; getTickets(filter?: { resourceId?: string; incidentId?: string; status?: string; }): Promise; getAllIncidents(): CorrelatedIncident[]; } export declare class InMemoryAvailabilityControl implements AvailabilityControl { private itemNames; private unavailable; private disabledHistory; /** `itemNames` maps item IDs to display names for the disabled-items report. */ constructor(itemNames?: Record); disableItem(itemId: string, resourceId: string, reason: string): Promise; enableItem(itemId: string, resourceId: string): Promise; isItemAvailable(itemId: string, resourceId: string): Promise; getDisabledItems(resourceId?: string): Promise; } //# sourceMappingURL=memory.d.ts.map