import { a as EntityWireQuery, b as EntityColumnWire, c as EntityWireRow } from '../port-CHlt3TIy.cjs'; export { d as CreateEntityClientOptions, C as CreateEntityDataPortOptions, e as CreateEntityRealtimeOptions, D as DEFAULT_BATCH_MS, f as DEFAULT_MAX_ORG_TOPICS, g as DEFAULT_MAX_WAIT_MS, h as ENTITY_DOOR_SCHEMA, i as ENTITY_NOTICE_EVENT, j as EntityAlias, k as EntityClient, l as EntityColumnsAnswer, E as EntityDataPort, m as EntityGetAnswer, n as EntityListAnswer, o as EntityListRequest, p as EntityNotice, q as EntityNoticeSink, r as EntityRealtime, s as EntitySortApplied, t as EntityTypeFacts, u as EntityWirePredicate, v as EntityWireRef, w as EntityWireSort, x as EntityWriteAnswer, y as EntityWriteOptions, O as OP_ID_HEADER, z as createEntityClient, A as createEntityDataPort, B as createEntityRealtime, F as createSeedPort, G as entityNoticeKey, H as entityOrgChannel, I as entityOrgChannelSpec, J as entityOrgTopic, K as orderOrganizationTopics, L as readEntityRealtimeKnobs, M as toWireValue, N as toWireValues } from '../port-CHlt3TIy.cjs'; import { RecordsErrorCode, PgError, RecordsError } from '../core/index.cjs'; import { Query, Column, EntityRef, Row } from '../data/index.cjs'; import '../ports-BSd-1p1l.cjs'; import '../field-BJBjyD8y.cjs'; import '@ai-matrx/data/realtime'; import '../relation-DuY2Eis-.cjs'; /** * Every MX code a read door raises, and the engine code a screen branches on. A code the doors learn * later and this map lacks comes back `internal` with `unmapped: true` (never silently "handled"). */ declare const ENTITY_REFUSALS: Readonly>; declare function mapEntityError(error: PgError, where: string): RecordsError; /** A refusal this package itself raises (an alias nobody declared, a write not offered yet). */ declare function refusal(code: RecordsErrorCode, message: string, hint?: string): { ok: false; error: RecordsError; }; declare const CUSTOM_PREFIX = "_custom."; /** * Applets column key → the door's identifier. A custom field is `_custom.` (the key as * `columns()` answered it — the same plain key for every viewer; `@` is accepted, never produced). */ declare function wireColumn(column: string, customKeys: ReadonlySet): string; declare function toWire(query: Query | undefined, customKeys?: ReadonlySet): EntityWireQuery; /** Every link reads as `EntityRef[]` — `{token, id, label}`, the label null when the store had no words for it. */ declare function toRefs(value: unknown): EntityRef[]; declare function toRow(wire: EntityWireRow): Row; declare function toColumn(wire: EntityColumnWire): Column; /** The columns a person sees: the door's own list minus the identity columns a Row carries as `_id` / `_version` / `_organization_id`. */ declare function toColumns(wire: readonly EntityColumnWire[]): Column[]; export { CUSTOM_PREFIX, ENTITY_REFUSALS, EntityColumnWire, EntityWireQuery, EntityWireRow, mapEntityError, refusal, toColumn, toColumns, toRefs, toRow, toWire, wireColumn };