import type { ArtifactShareGrant, MemoryScope } from "../types/memory.js"; import type { UUID } from "../types/primitives.js"; export declare function isMemoryScope(value: unknown): value is MemoryScope; /** Owning entity of a scoped record: `scopedToEntityId`, then `addedBy`, then the record's entity. */ export declare function scopedEntityIdFromMetadata(metadata: { scopedToEntityId?: unknown; addedBy?: unknown; } | undefined, fallback: T): UUID | T; /** * Parse untrusted grant entries into typed grants. A grant that cannot be read * grants NOTHING (it is dropped, fail closed); it never degrades into a default. */ export declare function parseShareGrantList(value: unknown): ArtifactShareGrant[];