import { Ddan } from '../typings'; /** * 设置单例模式 * @returns */ declare function singleton(): { new (): {}; __instance__: any; readonly Instance: T; readonly I: T; }; declare function singletonFactory any>(constructor: T): { new (...args: any[]): { [x: string]: any; }; __instance__: InstanceType; getInstance(): InstanceType; readonly I: InstanceType; } & T; declare function getset(t?: T): Ddan.IGetset; declare const _default: { singleton: typeof singleton; getset: typeof getset; singletonFactory: typeof singletonFactory; }; export default _default;