import type { MetaData } from "@metaobjectsdev/metadata"; import type { Dialect, Row } from "./persistence-driver.js"; export declare function coerceRowOnRead(entity: MetaData, row: Row, dialect: Dialect): Row; /** * The effective `@intValueMap` (member symbol → integer) for an int-backed * `field.enum`, or undefined when the enum is string-backed. Its PRESENCE is the * whole trigger for integer persistence (design D5) — there is no separate flag. * * ADR-0039: RESOLVING (`attr`, not `ownAttr`), and load-bearing rather than * incidental. Post-#246 an own `@intValueMap` against a shared (root-level * abstract) enum is `ERR_ENUM_EXTENDS_VALUES_CONFLICT`, so the map lives on the * SHARED DECLARATION and every consuming field INHERITS it — an own-only read * would see undefined on exactly the shape adopters are steered toward and bind * the symbol straight into an integer column. * * Mirrors `codegen-ts`'s `intValueMapOf`; duplicated rather than shared because * `runtime-ts` must not depend on a codegen package (the two are disjoint trees, * and only one of them ships to a server at runtime). */ export declare function intValueMapOf(field: MetaData): Record | undefined; export declare function coerceRowOnWrite(entity: MetaData, row: Row, dialect: Dialect): Row; //# sourceMappingURL=type-coercer.d.ts.map