import { IbGibAddr } from "@ibgib/ts-gib/dist/types.mjs"; import { IbGib_V1 } from "@ibgib/ts-gib/dist/V1/types.mjs"; import { AliasIbGib_V1, AliasInfo } from "./alias-types.mjs"; import { MetaspaceService } from "../../witness/space/metaspace/metaspace-types.mjs"; import { IbGibSpaceAny } from "../../witness/space/space-base-v1.mjs"; /** * relates an ibgib provided by {@link ibGib} or {@link addr} to the latest * version of the given {@link aliasIbGib}. * * If the alias already exists, this will replace the target ibgib with the ibgib passed in. * if the alias does not exist, this will create the new alias first. * * persists this result in the same {@link space} and registers the newly * created alias ibgib via the {@link metaspace}. * * @returns the new/latest alias ibgib * * @throws an error if the aliases special ibgib index does not exist in the * given {@link space} * * @see {@link ALIAS_TARGET_REL8N_NAME} */ export declare function setAlias({ ibGib, addr, aliasIbGib, aliasName, metaspace, space, lock, }: { /** * the ibgib that we're relating to the alias. can also provide just the * {@link addr}. */ ibGib?: IbGib_V1; /** * the ibgib addr that we're relating to the alias. */ addr?: IbGibAddr; /** * the alias that we're relating to */ aliasIbGib?: AliasIbGib_V1; aliasName?: string; /** * it's meta */ metaspace: MetaspaceService; /** * space in which the alias exists on the aliases special ibgib index */ space: IbGibSpaceAny; /** * lock on operations */ lock?: boolean; }): Promise; /** * gets the alias ibgib and sundry based on given `aliasName`. * * @returns info about the alias registered or undefined if no matching alias * exists */ export declare function getAliasInfo({ aliasName, metaspace, lock, space, }: { aliasName: string; /** * space in which the alias exists on the aliases special ibgib index */ space: IbGibSpaceAny; metaspace: MetaspaceService; /** * lock on operations */ lock?: boolean; }): Promise; //# sourceMappingURL=alias-helper.d.mts.map