/** * Get an singleton instance from window/global space * if symbol did not exists, create it and assign to window/global * @public */ export declare function globalSingletonStrong(symbol: symbol | string, constructor: () => T): T; /** * Get an singleton instance from window/global space * @public */ export declare function globalSingletonStrong(symbol: symbol | string): T | undefined; /** * Delete a key from window/global space * use with care * @public */ export declare function globalSingletonDelete(symbol: symbol | string): void; /** * Same with globalSingletonStrong, but save instance in a WeakMap, so it maybe delete by gc if no reference * @public */ export declare function globalSingleton(symbol: symbol | string, constructor: () => T): T; /** * Same with globalSingletonStrong, but save instance in a WeakMap, so it maybe delete by gc if no reference * @public */ export declare function globalSingleton(symbol: symbol | string): T | undefined; //# sourceMappingURL=globalSingleton.d.ts.map