/** * Stable identity derivation for mapped entities. * * These helpers keep entity IDs, row anchors, and shared row-binding IDs * deterministic across the system_state and user_input projections. */ import type { TypedSheetsEntityMapping } from "./contracts.js"; /** Derives the stable row-binding ID shared by an entity's physical projections. */ export declare function typedSheetsEntityRowBindingId(mapping: TypedSheetsEntityMapping, entityId: string | number): string; /** Derives and validates the projection anchor for one canonical entity. */ export declare function typedSheetsEntityAnchor(mapping: TypedSheetsEntityMapping, entityId: string | number): string; /** Reads the mapping's primary key from a pending entity change. * * Accepts a non-empty string or a safe-integer number and normalizes both to * the single canonical string form (`String(id)`) so Sheets, canonical * state, and observation agree on `42` vs `"42"`. */ export declare function typedSheetsEntityId(mapping: TypedSheetsEntityMapping, entity: object): string; /** Converts a visible entity ID into the canonical ID used by sync state. */ export declare function typedSheetsCanonicalEntityId(mapping: TypedSheetsEntityMapping, entityId: string | number): string; /** Converts a canonical sync identity back to the entity-table primary key. */ export declare function typedSheetsEntityIdFromCanonical(mapping: TypedSheetsEntityMapping, entityId: string | number): string; //# sourceMappingURL=identity.d.ts.map