import { type DocumentId } from '@automerge/automerge-repo'; import type { CollectionId } from '@dxos/echo-protocol'; import { SpaceId } from '@dxos/keys'; export declare const deriveCollectionIdFromSpaceId: (spaceId: SpaceId, rootDocumentId?: DocumentId) => CollectionId; /** * Non-throwing variant of {@link getSpaceIdFromCollectionId}: returns the owning space id for a * space collection id (`space:[:]`), or null for any collection id that does not * embed a valid space id. Used on the share-policy path, where the parse must not throw. */ export declare const tryGetSpaceIdFromCollectionId: (collectionId: string) => SpaceId | null; export declare const getSpaceIdFromCollectionId: (collectionId: CollectionId) => SpaceId; //# sourceMappingURL=space-collection.d.ts.map