/// import { Borsh, Account, AnyPublicKey, StringPublicKey } from '@metaplex-foundation/mpl-core'; import { AccountInfo, Connection, PublicKey } from '@solana/web3.js'; import { Buffer } from 'buffer'; import { MetadataKey } from '../MetadataProgram'; import { Edition } from './Edition'; import { MasterEdition } from './MasterEdition'; declare type CreatorArgs = { address: StringPublicKey; verified: boolean; share: number; }; export declare class Creator extends Borsh.Data { static readonly SCHEMA: any; address: StringPublicKey; verified: boolean; share: number; } declare type DataArgs = { name: string; symbol: string; uri: string; sellerFeeBasisPoints: number; creators: Creator[] | null; }; export declare class MetadataDataData extends Borsh.Data { static readonly SCHEMA: any; name: string; symbol: string; uri: string; sellerFeeBasisPoints: number; creators: Creator[] | null; constructor(args: DataArgs); } declare type Args = { updateAuthority: StringPublicKey; mint: StringPublicKey; data: MetadataDataData; primarySaleHappened: boolean; isMutable: boolean; editionNonce: number | null; }; export declare class MetadataData extends Borsh.Data { static readonly SCHEMA: any; key: MetadataKey; updateAuthority: StringPublicKey; mint: StringPublicKey; data: MetadataDataData; primarySaleHappened: boolean; isMutable: boolean; editionNonce: number | null; masterEdition?: StringPublicKey; edition?: StringPublicKey; constructor(args: Args); } export declare class Metadata extends Account { constructor(pubkey: AnyPublicKey, info: AccountInfo); static isCompatible(data: Buffer): boolean; static getPDA(mint: AnyPublicKey): Promise; static findMany(connection: Connection, filters?: { mint?: AnyPublicKey; updateAuthority?: AnyPublicKey; creators?: AnyPublicKey[]; }): Promise; static findByOwner(connection: Connection, owner: AnyPublicKey): Promise; static findByOwnerV2(connection: Connection, owner: AnyPublicKey): Promise; static findDataByOwner(connection: Connection, owner: AnyPublicKey): Promise; static getEdition(connection: Connection, mint: AnyPublicKey): Promise; } export declare const MAX_NAME_LENGTH = 32; export declare const MAX_SYMBOL_LENGTH = 10; export declare const MAX_URI_LENGTH = 200; export declare const MAX_CREATOR_LEN: number; export declare const computeCreatorOffset: (index: number) => number; export {};