/// export interface MagicRecordData { label: string; payload: T; } export declare class MagickRecord { static Exception: { new (message?: string | undefined): { name: string; message: string; stack?: string | undefined; }; captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; stackTraceLimit: number; }; static pack(record: MagicRecordData): Promise; /** * Unpack magick framed record optionally checking the label. * @param packed * @param labels if at least one label presents, will not unpack the rest of the record unless the loaded label is * listed among labels. * @throws MagickRecord.Exception if the label is not present in an non-empty labels. */ static unpack(packed: Uint8Array, ...labels: string[]): Promise>; }