import { Address } from '../account'; import { MosaicId } from '../mosaic/MosaicId'; import { UInt64 } from '../UInt64'; import { MosaicAddressRestrictionItem } from './MosaicAddressRestrictionItem'; import { MosaicRestrictionEntryType } from './MosaicRestrictionEntryType'; export declare class MosaicAddressRestriction { /** * Version */ readonly version: number; /** * composite hash */ readonly compositeHash: string; /** * Mosaic restriction entry type. */ readonly entryType: MosaicRestrictionEntryType; /** * Mosaic identifier. */ readonly mosaicId: MosaicId; /** * Target address */ readonly targetAddress: Address; /** * Mosaic restriction items */ readonly restrictions: MosaicAddressRestrictionItem[]; /** * Constructor * @param version * @param compositeHash * @param entryType * @param mosaicId * @param targetAddress * @param restrictions */ constructor( /** * Version */ version: number, /** * composite hash */ compositeHash: string, /** * Mosaic restriction entry type. */ entryType: MosaicRestrictionEntryType, /** * Mosaic identifier. */ mosaicId: MosaicId, /** * Target address */ targetAddress: Address, /** * Mosaic restriction items */ restrictions: MosaicAddressRestrictionItem[]); /** * Returns the restriction for a given key. * * @param key the key. */ getRestriction(key: UInt64): MosaicAddressRestrictionItem | undefined; /** * Generate buffer * @return {Uint8Array} */ serialize(): Uint8Array; }