import { web3AuthNetworkToCadenceContractAddresses } from './constants'; type NetworkContractAddresses = (typeof web3AuthNetworkToCadenceContractAddresses)[keyof typeof web3AuthNetworkToCadenceContractAddresses]; export declare const getLinkAccountCadence: ({ NonFungibleToken, MetadataViews, LinkedAccountMetadataViews, LinkedAccounts, }: NetworkContractAddresses) => string; export declare const publishAccountCadence = "\n#allowAccountLinking\n\n/// Signing account publishes a Capability to its AuthAccount for\n/// the specified parentAddress to claim\n///\ntransaction(parentAddress: Address, authAccountPathSuffix: String) {\n\n let authAccountCap: Capability<&AuthAccount>\n\n prepare(signer: AuthAccount) {\n // Assign the PrivatePath where we'll link the AuthAccount Capability\n let authAccountPath: PrivatePath = PrivatePath(identifier: authAccountPathSuffix)\n ?? panic(\"Could not construct PrivatePath from given suffix: \".concat(authAccountPathSuffix))\n // Get the AuthAccount Capability, linking if necessary\n if !signer.getCapability<&AuthAccount>(authAccountPath).check() {\n signer.unlink(authAccountPath)\n self.authAccountCap = signer.linkAccount(authAccountPath)!\n } else {\n self.authAccountCap = signer.getCapability<&AuthAccount>(authAccountPath)\n }\n // Publish for the specified Address\n signer.inbox.publish(self.authAccountCap!, name: \"AuthAccountCapability\", recipient: parentAddress)\n }\n}\n"; export {};