/** * @module outer-space * Outer spaces are spaces connecting local inner spaces. * ATOW there is just sync spaces, but definitely just the beginning. * * ## on future implementations, CRDT-like behavior * * I just realized that when merging, I can actually create a meta transform * ibgib to maintain the order of transforms. */ import { Ib } from '@ibgib/ts-gib/dist/types.mjs'; import { ParticipantInfo, StatusIbInfo, SyncSpaceIbGib } from './outer-space-types.mjs'; import { IbGibSpaceAny } from '../space-base-v1.mjs'; import { SpaceFactoryFnMap } from '../metaspace/metaspace-types.mjs'; /** * Composes ib with given params info. * * @returns ib string with given info encoded */ export declare function getStatusIb({ sagaId, statusCode, spaceType, spaceSubtype, delimiter, }: StatusIbInfo): string; /** * Parses the given `statusIb` and returns the info object. * * @returns info from parsing the status ib */ export declare function getStatusIbInfo({ statusIb, delimiter, }: { statusIb: Ib; delimiter?: string; }): StatusIbInfo; export declare function getSyncSpaces({ space, }: { space: IbGibSpaceAny; }): Promise; /** * gets the sync space ibgibs referenced in the given local {@link localSpace} * and loads them into their corresponding witness classes. * * note: atow (03/2024) this throws if a factory function isn't found for ANY of * the sync spaces found. later on, when multiple kinds of sync spaces are in * existence, this behavior should change because it would be quite possible * that we have multiple spaces that may not have a loaded factory function * available. * * @see {@link SpaceFactoryFnMap} * * @returns sync space witnesses */ export declare function getSyncSpaces_witnesses({ localSpace, spaceFactoryFns, }: { /** * user's local space that contains references to outer space "proxy" * ibgibs. */ localSpace: IbGibSpaceAny; /** * factory function map (by type/subtype) that generates the space witnesses * from the space dtos. * * @see {@link SpaceFactoryFnMap} */ spaceFactoryFns: SpaceFactoryFnMap; }): Promise; export declare function getSrcLocalSpaceId({ participants, }: { participants: ParticipantInfo[]; }): string; //# sourceMappingURL=outer-space-helper.d.mts.map