/** * Business-key index maintenance for mapped entity persistence. * * The index is kept in the same SQLite transaction as the canonical entity * write, so duplicate and rotated keys cannot become visible independently of * the entity lifecycle change. */ import type { NormalizedCell } from "../../../contracts/encoding/types.js"; import type { SqlExecutor } from "../../../contracts/storage/sql.js"; import type { TypedSheetsEntityMapping } from "../../mapping/entityMapping.js"; /** Claims the mapped entity's normalized business key during creation. */ export declare function claimBusinessKey(sql: SqlExecutor, mapping: TypedSheetsEntityMapping, entityId: string, encodedEntity: Readonly>): Promise; /** Rotates the indexed business key after an accepted entity update. */ export declare function rotateBusinessKey(sql: SqlExecutor, mapping: TypedSheetsEntityMapping, entityId: string, encodedEntity: Readonly>): Promise; /** Retires all business keys owned by a deleted mapped entity. */ export declare function retireEntityBusinessKeys(sql: SqlExecutor, mapping: TypedSheetsEntityMapping, entityId: string): Promise; //# sourceMappingURL=businessKeys.d.ts.map