export declare type Constructor = new (...args: any[]) => T; /** * 注册widget */ export declare function shortcut(): (Target: Constructor & { xtype: string; }) => void; /** * 注册model */ export declare function model(): {}) & { xtype: string; context?: readonly string[] | undefined; }>(Target: U) => void; /** * 类注册_store属性 * @param Model model类 * @param opts 额外条件 */ export declare function store(Model: Constructor & { xtype: string; }, opts?: { props?(this: unknown): { [key: string]: unknown; }; }): {}>(constructor: U) => { new (...args: any[]): { _store(): any; }; } & U; /** * Model基类 */ export declare class Model; } = {}> extends Fix.Model { model: Pick<{ [key in keyof U["types"]]: U["types"][key]; }, U["context"][number]> & { [key in keyof ReturnType]: ReturnType[key]; } & { [key in keyof this["computed"]]: ReturnType; }; store: this["actions"]; state(): { [key: string]: unknown; } | {}; context: U["context"]; actions: { [key: string]: (...args: any[]) => any; }; childContext: ReadonlyArray)>; TYPE: Pick<{ [key in keyof this["computed"]]: ReturnType; } & { [key in keyof ReturnType]: ReturnType[key]; }, this["childContext"][number]>; computed: { [key: string]: () => unknown; } | {}; }