/** * @module package-galaxy-helpers * * Helper functions for Package Galaxy Archetype (Class II: Registry / Milestones). * Space-based and isomorphic. */ import { Ib } from '@ibgib/ts-gib/dist/types.mjs'; import { MetaspaceService } from '../../witness/space/metaspace/metaspace-types.mjs'; import { IbGibSpaceAny } from '../../witness/space/space-base-v1.mjs'; import { GalaxyPolicy } from '../galaxy/galaxy-types.mjs'; import { PackageGalaxyIbGib_V1, PackageGalaxyData_V1, PackageGalaxyIb_V1 } from './package-galaxy-types.mjs'; /** * Generates the ib string for a Package Galaxy. */ export declare function getPackageGalaxyIb({ galaxyId }: { galaxyId: string; }): Ib; /** * Parses an ib string into PackageGalaxyIb_V1. */ export declare function parsePackageGalaxyIb({ ib }: { ib: Ib; }): PackageGalaxyIb_V1; /** * Creates genesis PackageGalaxyIbGib_V1 in space. */ export declare function createPackageGalaxyIbGib({ galaxyName, defaultBranch, space, metaspace, sqBranchAddr, cosmosName, policy, }: { galaxyName?: string; defaultBranch?: string; space: IbGibSpaceAny; metaspace: MetaspaceService; sqBranchAddr?: string; cosmosName?: string; policy?: GalaxyPolicy; }): Promise; /** * Retrieves authoritative PackageGalaxyIbGib_V1 from space. */ export declare function getPackageGalaxyIbGib({ space, metaspace, galaxyAddr, }: { space: IbGibSpaceAny; metaspace?: MetaspaceService; galaxyAddr?: string; }): Promise; /** * Updates a PackageGalaxyIbGib_V1 in space with patched data. */ export declare function updatePackageGalaxyIbGib({ space, metaspace, galaxyIbGib, dataToUpdate, }: { space: IbGibSpaceAny; metaspace?: MetaspaceService; galaxyIbGib: PackageGalaxyIbGib_V1; dataToUpdate: Partial; }): Promise; //# sourceMappingURL=package-galaxy-helpers.d.mts.map