/** * Record on the project store that its row identity left it, or came from * elsewhere (`row_identity_synced`), so a later full identity refill refuses * (T13249, T13250). Every path that carries the store's uids out of it calls * this: a snapshot export or import, a portable bundle export, a vault push. * * @module store/identity-share * @task T13250 */ /** Options of {@link markProjectIdentityShared}. */ export interface MarkIdentitySharedOptions { /** * Mark only when the store holds any identity value. A store the fill never * ran on (row uids off, the default) has no uid to share, and stays * untouched: no identity meta is written. */ readonly onlyIfIdentity?: boolean; } /** * Mark the project store's identity shared. Never skipped silently: without a * bound handle the store is opened through the chokepoint, and a failure * throws (T13270). * * @param cwd - The project. * @param direction - `send` (uids left the store) or `receive` (uids came in). * @param opts - Whether to mark only a store that holds identity values. * @returns Whether the marker was written (or was already there). * @task T13250 */ export declare function markProjectIdentityShared(cwd: string | undefined, direction: 'send' | 'receive', opts?: MarkIdentitySharedOptions): Promise; /** * Mark a store FILE's identity shared without opening it through the * chokepoint (no migration, no open-time pass): for a store a bundle import * or vault restore just placed, which import must preserve as it is. Only a * store that holds identity values and the identity meta table is touched. * A bundle made before T13250, or by an older peer, carries uids with no * marker; the placed copy records that it received them (#1952 review LOW-1). * * @param dbPath - The placed project `cleo.db`. * @param direction - `receive` for a placed copy. * @returns Whether the marker was written (or was already there). * @task T13305 */ export declare function markStoreFileIdentityShared(dbPath: string, direction: 'send' | 'receive'): Promise; //# sourceMappingURL=identity-share.d.ts.map