// Type definitions for @dyna-grid/core v1.1.4 // Project: // Definitions by: zhangkun <> import { IComponent } from "../../interfaces/iComponent"; import { BeanStub } from "../../context/beanStub"; export declare enum RegisteredComponentSource { DEFAULT = 0, REGISTERED = 1 } /** * B the business interface (ie IHeader) * A the dyGridComponent interface (ie IHeaderComp). The final object acceptable by dyna-grid */ export interface RegisteredComponent & B, B> { component: RegisteredComponentInput; componentFromFramework: boolean; source: RegisteredComponentSource; } export declare type RegisteredComponentInput & B, B> = DyGridRegisteredComponentInput | { new (): B; }; export declare type DyGridRegisteredComponentInput> = DyGridComponentFunctionInput | { new (): A; }; export declare type DyGridComponentFunctionInput = (params: any) => string | HTMLElement; export interface DeprecatedComponentName { propertyHolder: string; newComponentName: string; } export declare class UserComponentRegistry extends BeanStub { private gridOptions; private dyGridDefaults; private dyDeprecatedNames; private jsComponents; private frameworkComponents; private init; registerDefaultComponent>(rawName: string, component: DyGridRegisteredComponentInput): void; registerComponent>(rawName: string, component: DyGridRegisteredComponentInput): void; /** * B the business interface (ie IHeader) * A the dyGridComponent interface (ie IHeaderComp). The final object acceptable by dyna-grid */ registerFwComponent & B, B>(rawName: string, component: { new (): IComponent; }): void; /** * B the business interface (ie IHeader) * A the dyGridComponent interface (ie IHeaderComp). The final object acceptable by dyna-grid */ retrieve & B, B>(rawName: string): RegisteredComponent | null; private translateIfDeprecated; }