import { Option } from '@metaplex-foundation/umi'; import { Plugin as BasePlugin, ExternalPluginAdapterSchema, PluginAuthorityPair, PluginHeaderV1, RegistryRecord } from '../generated'; import { PluginAuthority } from './pluginAuthority'; import { AssetAllPluginArgsV2, AssetPluginAuthorityPairArgsV2, CreatePluginArgs, PluginAuthorityPairHelperArgs, PluginsList } from './types'; export declare function formPluginHeaderV1(pluginRegistryOffset: bigint): Omit; /** * @deprecated Use the new 1.0 sdk instruction helpers like `create` instead of `createV1` which no longer require sub create functions like this. * @param args * @returns */ export declare function createPlugin(args: CreatePluginArgs): BasePlugin; /** * @deprecated Use the new 1.0 sdk instruction helpers like `create` instead of `createV1` which no longer require sub create functions like this. * @param args * @returns */ export declare function pluginAuthorityPair(args: PluginAuthorityPairHelperArgs): PluginAuthorityPair; export declare function createPluginV2(args: AssetAllPluginArgsV2): BasePlugin; /** * @deprecated Use the new 1.0 sdk instruction helpers like `create` instead of `createV1` which no longer require sub create functions like this. * @param args * @returns */ export declare function pluginAuthorityPairV2({ type, authority, ...args }: AssetPluginAuthorityPairArgsV2): PluginAuthorityPair; export declare function mapPluginFields(fields: Array>): Record; export declare function mapPlugin({ plugin: plug, authority, offset, }: { plugin: Exclude; authority: PluginAuthority; offset: bigint; }): PluginsList; export declare function registryRecordsToPluginsList(registryRecords: RegistryRecord[], accountData: Uint8Array): PluginsList; export declare function pluginKeyToPluginType(pluginKey: keyof PluginsList): "AddBlocker" | "Attributes" | "Autograph" | "BubblegumV2" | "BurnDelegate" | "Royalties" | "FreezeDelegate" | "TransferDelegate" | "UpdateDelegate" | "PermanentFreezeDelegate" | "PermanentTransferDelegate" | "PermanentBurnDelegate" | "Edition" | "MasterEdition" | "ImmutableMetadata" | "VerifiedCreators" | "FreezeExecute" | "PermanentFreezeExecute"; export declare function parseExternalPluginAdapterData(plugin: { schema: ExternalPluginAdapterSchema; }, record: { dataLen: Option; dataOffset: Option; }, account: Uint8Array): any;