import { type EntityStructure } from '@dxos/echo-protocol'; import { type SpaceId } from '@dxos/keys'; /** * Resolves whether entities are deleted, including the transitive rule. * * Deletion cascades are computed at read time, never written: a child of a deleted parent, and a * relation with a deleted endpoint, carry no `deleted` flag of their own yet query as deleted * (`ObjectCore.isDeleted`). Garbage collection has to apply the same rule, or those entities are * invisible to every query while their documents are retained forever. * * Memoized per (entity, remaining depth) across the pass: the walk revisits shared parents * constantly. */ export declare class DeletionResolver { #private; constructor(spaceId: SpaceId); /** Registers the entities of one document so the walk can resolve references into it. */ add(objects: Record | undefined): void; has(objectId: string): boolean; isDeleted(objectId: string): boolean; } //# sourceMappingURL=deletion.d.ts.map