import type { IndexingResult } from '@dxos/index-core'; import { type EntityId, type SpaceId } from '@dxos/keys'; export type InvalidationHint = { spaceIds?: ReadonlySet; queueIds?: ReadonlySet; /** * Canonical typenames (version-less) — see {@link canonicalTypename}. * A type filter matches every version of a typename, so invalidation keys on the bare typename. * Query scopes are canonicalized the same way, so hints and scopes compare with a plain set overlap. */ typenames?: ReadonlySet; objectIds?: ReadonlySet; }; /** * Reduces a type URI to the version-less typename used as the canonical key for invalidation * matching. Stored objects record a versioned `@type` (e.g. `dxn:foo:0.1.0`) while type filters * reference a typename without a version; both collapse to the same key here. Non-DXN URIs * (EchoURI schema references) have no version and pass through unchanged. */ export declare const canonicalTypename: (uri: string) => string; /** * Converts an IndexingResult to an InvalidationHint. * Returns undefined when nothing was indexed (no need to invalidate). */ export declare const hintFromIndexingResult: (r: IndexingResult) => InvalidationHint | undefined; /** * Merges two hints for the same tick. * If either side leaves a dimension unconstrained (undefined), the merged result is also unconstrained on that dimension. */ export declare const mergeHints: (a: InvalidationHint, b: InvalidationHint) => InvalidationHint; //# sourceMappingURL=invalidation-hint.d.ts.map