/** * @template Query * @template Model * @typedef {{ execute(query: Query, context?: RequestContext): Promise> }} ResourceQueryPort */ /** * @template Command * @template Model * @typedef {{ execute(command: Command, context?: RequestContext): Promise> }} ResourceCommandPort */ /** * @typedef {{ * operationId: string, * routeId: string, * signal?: AbortSignal, * idempotencyKey?: string * }} RequestContext */ /** * @template Value * @typedef {{ ok: true, value: Value, meta?: Record } | * { ok: false, error: import("../../contracts/errors.js").ApiFailure }} Result */ export {};