import type IpfsAdapter from './IpfsAdapter.js'; import { MetadataType } from './constants.js'; import { type DataTypeMap, type Metadata, type MetadataTypeMap } from './types.js'; export declare const IpfsMetadataEvents: { readonly annotation: "Annotation(address,bytes32,string)"; readonly colony: "ColonyMetadata(address,string)"; readonly decision: "Annotation(address,bytes32,string)"; readonly domain: "DomainMetadata(address,uint256,string)"; readonly misc: ""; readonly default: ""; }; export type MetadataEvent = (typeof IpfsMetadataEvents)[K]; /** * IpfsMetadata * * This is part of the {@link ColonyNetwork} and {@link ColonyEventManager} classes and not to be meant to instantiated directly. * You can find an instance of this under `colonyNetwork.ipfs` or `eventManager.ipfs` * */ export declare class IpfsMetadata { private adapter; constructor(adapter?: IpfsAdapter); static eventSupportsMetadata(eventName: string): boolean; getMetadata(cid: string, type?: K): Promise; getMetadataForEvent>(eventName: E, cid: string): Promise; getRawMetadata(cid: string): Promise; uploadMetadata(type: T, input: DataTypeMap[T]): Promise; }