/** * Copyright (c) 2018-2023, BOTLabs GmbH. * * This source code is licensed under the BSD 4-Clause "Original" license * found in the LICENSE file in the root directory of this source tree. */ import type { Option } from '@polkadot/types'; import type { IAttestation, ICredential } from '@kiltprotocol/types'; import type { AttestationAttestationsAttestationDetails } from '@kiltprotocol/augment-api'; /** * Decodes the attestation returned by `api.query.attestation.attestations()`. * * @param encoded Raw attestation data from blockchain. * @param claimHash The attestation claimHash. * @returns The attestation. */ export declare function fromChain(encoded: Option, claimHash: ICredential['rootHash']): IAttestation;