1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare class MsgPackExtensionManager {
|
9 | private static readonly INSTANCE;
|
10 | static getInstance(): MsgPackExtensionManager;
|
11 | private extensions;
|
12 | private constructor();
|
13 | registerExtensions(...extensions: MsgPackExtension[]): void;
|
14 | getExtension(tag: number): MsgPackExtension | undefined;
|
15 | }
|
16 | export interface MsgPackExtension {
|
17 | class: Function;
|
18 | tag: number;
|
19 | serialize(instance: unknown): unknown;
|
20 | deserialize(serialized: any): unknown;
|
21 | }
|
22 | export declare type Constructor<T> = new (...params: unknown[]) => T;
|
23 |
|
\ | No newline at end of file |