import { Claim } from './Claim'; import type { Source } from './Source'; import type { IError } from './lib/types'; /** * A class that holds the C2PA provenance data of an asset * * @see {@link https://c2pa.org/public-draft/#_core_aspects_of_c2pa} * * @public */ export declare class ImageProvenance { #private; /** * The list of claims contained in this provenance data */ readonly claims: Map; /** * The original asset that this provenance is a part of */ readonly source: Source; /** * Create a new `ImageProvenance` object. Typically this will only be returned from * `ContentAuth` calls. * * @param toolkitResult - The result from the WebAssembly toolkit (@contentauth/ask) * * @internal */ constructor(toolkitResult: any, source: Source); /** * This resolves an ID of either a claim or an ingredient so that we can identify it globally. * * @remarks * We should be able to access every claim/ingredient in one of two ways: * * - Claims should be able to be accessed by their ID, e.g. `mEiBD6JdB/na1TIxvcw9HMkbo6stDkkiNFcy8Lsp3oW5yOw` * - Ingredients should be able to be accessed by their associated claim ID and index, * e.g. `mEiBD6JdB/na1TIxvcw9HMkbo6stDkkiNFcy8Lsp3oW5yOw[0]` * * @param id - the id of the claim or ingredient to get */ resolveId(id: string): Claim | import("./Ingredient").Ingredient | undefined; /** * Returns `true` if C2PA metadata exists on this image */ get exists(): boolean; /** * Gets the active (latest) claim in the provenance data */ get activeClaim(): Claim | undefined; /** * Returns the raw claim data from the WebAssembly toolkit */ get data(): any; /** * Any errors coming back from the toolkit */ get errors(): IError[]; } //# sourceMappingURL=ImageProvenance.d.ts.map