// @ts-nocheck import { EndpointContext } from './endpoint-context'; import { Models } from './models'; export declare const createContext: , CTRL extends Record any>, ENTITY extends Record any>, REPO extends Record any>, PROVIDER extends Record any>, SUBSCRIBER extends Record any>>(configFn: (env: any) => Models.ContextOptions) => { types: { readonly controllers: CTRL; readonly repositories: REPO; readonly providers: PROVIDER; readonly subscribers: SUBSCRIBER; }; readonly contexts: CTX; readonly contextName: string; /** * - get reference to internal context */ __ref(): Promise; readonly __refSync: EndpointContext; getClassInstance(ctor: new (...args: any[]) => T): T; getClass(ctor: new (...args: any[]) => T): new (...args: any[]) => T; /** * - create controller instances for context * - init database (if enable) + migation scripts */ initialize: () => Promise; };