This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export declare class Wrapper<Kind, Value = any> { | |
private kind: Kind; | |
private value: Value; | |
} | |
export interface WrapperRegistry<Kind> extends Function { | |
constructor: WrapperRegistryConstructor; | |
wrap<T>(value: T): Wrapper<Kind, T>; | |
unwrap<T>(wrapped: Wrapper<Kind, T>): T; | |
} |