import type { NodeId, ProviderIdentityId } from '../ids/types.js'; import type { GestaltId, GestaltKey, GestaltAction, GestaltNodeInfo, GestaltNodeInfoJSON, GestaltLink, GestaltLinkJSON } from './types.js'; import type { ClaimLinkNode, ClaimLinkIdentity } from '../claims/payloads/index.js'; declare function toGestaltKey(gestaltId: GestaltId): GestaltKey; declare function fromGestaltKey(gestaltKey: GestaltKey): GestaltId; declare function toGestaltNodeKey(gestaltNodeId: ['node', NodeId]): GestaltKey; declare function fromGestaltNodeKey(gestaltNodeKey: GestaltKey): ['node', NodeId]; declare function toGestaltIdentityKey(gestaltIdentityId: ['identity', ProviderIdentityId]): GestaltKey; declare function fromGestaltIdentityKey(gestaltIdentityKey: GestaltKey): ['identity', ProviderIdentityId]; declare function isGestaltAction(action: any): action is GestaltAction; declare function parseGestaltAction(data: any): GestaltAction; declare function fromGestaltNodeInfoJSON(gestaltNodeInfoJSON: GestaltNodeInfoJSON): GestaltNodeInfo; declare function fromGestaltLinkJSON(gestaltLinkJSON: GestaltLinkJSON): GestaltLink; /** * Checks if the link node has matching node IDs */ declare function checkLinkNodeMatches(nodeId1: NodeId, nodeId2: NodeId, claimPayload: ClaimLinkNode): boolean; declare function checkLinkIdentityMatches(nodeId: NodeId, providerIdentityId: ProviderIdentityId, claimPayload: ClaimLinkIdentity): boolean; export { toGestaltKey, fromGestaltKey, toGestaltNodeKey, fromGestaltNodeKey, toGestaltIdentityKey, fromGestaltIdentityKey, isGestaltAction, parseGestaltAction, fromGestaltNodeInfoJSON, fromGestaltLinkJSON, checkLinkNodeMatches, checkLinkIdentityMatches, }; export { encodeGestaltId, encodeGestaltNodeId, encodeGestaltIdentityId, decodeGestaltId, decodeGestaltNodeId, decodeGestaltIdentityId, createGestaltLinkIdGenerator, } from '../ids/index.js';