import { EndlessConfig } from '../api/endlessConfig.mjs'; import { AccountAddressInput, AccountAddress } from '../core/accountAddress.mjs'; import { A as Account } from '../Ed25519Account-JTDdDAW6.mjs'; import { InputGenerateTransactionOptions } from '../transactions/types.mjs'; import { SimpleTransaction } from '../transactions/instances/simpleTransaction.mjs'; import '../types/index.mjs'; import '../utils/apiEndpoints.mjs'; import '../types/indexer.mjs'; import '../utils/const.mjs'; import '../bcs/serializer.mjs'; import '../core/hex.mjs'; import '../core/common.mjs'; import '../bcs/deserializer.mjs'; import '../transactions/instances/transactionArgument.mjs'; import '../transactions/authenticator/account.mjs'; import '../core/crypto/ed25519.mjs'; import '../authenticationKey-BaHTUD3k.mjs'; import '../core/crypto/signature.mjs'; import '../core/crypto/privateKey.mjs'; import '../core/crypto/multiEd25519.mjs'; import '../core/crypto/multiKey.mjs'; import '../core/crypto/singleKey.mjs'; import '../core/crypto/bls12381.mjs'; import '../core/crypto/multiAuthKey.mjs'; import '../bcs/serializable/moveStructs.mjs'; import '../bcs/serializable/movePrimitives.mjs'; import '../bcs/serializable/fixedBytes.mjs'; import '../transactions/instances/rawTransaction.mjs'; import '../transactions/instances/chainId.mjs'; import '../transactions/instances/transactionPayload.mjs'; import '../transactions/instances/identifier.mjs'; import '../transactions/instances/moduleId.mjs'; import '../transactions/typeTag/index.mjs'; import '../transactions/instances/multiAgentTransaction.mjs'; /** * This file contains the underlying implementations for exposed API surface in * the {@link api/name}. By moving the methods out into a separate file, * other namespaces and processes can access these methods without depending on the entire * name namespace and without having a dependency cycle error. */ declare const VALIDATION_RULES_DESCRIPTION: string; /** * * @param fragment A fragment of a name, either the domain or subdomain * @returns boolean indicating if the fragment is a valid fragment */ declare function isValidANSSegment(fragment: string): boolean; /** * Checks if an ANS name is valid or not * * @param name A string of the domain name, can include or exclude the .apt suffix */ declare function isValidANSName(name: string): { domainName: string; subdomainName?: string; }; declare const LOCAL_ANS_ACCOUNT_PK = "0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221"; declare const LOCAL_ANS_ACCOUNT_ADDRESS = "0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82"; declare function getRouterAddress(endlessConfig: EndlessConfig): string; declare function getOwnerAddress(args: { endlessConfig: EndlessConfig; name: string; }): Promise; interface RegisterNameParameters { endlessConfig: EndlessConfig; sender: Account; name: string; expiration: { policy: "domain"; years?: 1; } | { policy: "subdomain:follow-domain"; } | { policy: "subdomain:independent"; expirationDate: number; }; transferable?: boolean; toAddress?: AccountAddressInput; targetAddress?: AccountAddressInput; options?: InputGenerateTransactionOptions; } declare function registerName(args: RegisterNameParameters): Promise; declare function getExpiration(args: { endlessConfig: EndlessConfig; name: string; }): Promise; declare function getPrimaryName(args: { endlessConfig: EndlessConfig; address: AccountAddressInput; }): Promise; declare function setPrimaryName(args: { endlessConfig: EndlessConfig; sender: Account; name?: string; options?: InputGenerateTransactionOptions; }): Promise; declare function getTargetAddress(args: { endlessConfig: EndlessConfig; name: string; }): Promise; declare function setTargetAddress(args: { endlessConfig: EndlessConfig; sender: Account; name: string; address: AccountAddressInput; options?: InputGenerateTransactionOptions; }): Promise; declare function renewDomain(args: { endlessConfig: EndlessConfig; sender: Account; name: string; years?: 1; options?: InputGenerateTransactionOptions; }): Promise; export { LOCAL_ANS_ACCOUNT_ADDRESS, LOCAL_ANS_ACCOUNT_PK, type RegisterNameParameters, VALIDATION_RULES_DESCRIPTION, getExpiration, getOwnerAddress, getPrimaryName, getRouterAddress, getTargetAddress, isValidANSName, isValidANSSegment, registerName, renewDomain, setPrimaryName, setTargetAddress };