import type { Claim, SignedClaim } from '../types.js'; import type { NodeId, NodeIdEncoded } from '../../ids/types.js'; import type Token from '../../tokens/Token.js'; /** * Asserts that a node has the authority of a network. * The issuing nodeId has to be the root keypair for the whole network. */ interface ClaimNetworkAuthority extends Claim { typ: 'ClaimNetworkAuthority'; iss: NodeIdEncoded; sub: NodeIdEncoded; network: string; isPrivate: boolean; } declare function assertClaimNetworkAuthority(claimNetworkAuthority: unknown): asserts claimNetworkAuthority is ClaimNetworkAuthority; declare function parseClaimNetworkAuthority(claimNetworkNodeEncoded: unknown): ClaimNetworkAuthority; declare function parseSignedClaimNetworkAuthority(signedClaimNetworkNodeEncoded: unknown): SignedClaim; declare function verifyClaimNetworkAuthority(networkNodeId: NodeId, targetNodeId: NodeId, network: string, token: Token): void; export { assertClaimNetworkAuthority, parseClaimNetworkAuthority, parseSignedClaimNetworkAuthority, verifyClaimNetworkAuthority, }; export type { ClaimNetworkAuthority };