UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

20 lines (19 loc) 1.35 kB
import type { AppManifest } from '../../app/index.js'; import type { DirPath, URLPath } from '../../dt/index.js'; import type { ProductUCsLoaderOutput } from '../../product/index.js'; import type { UCDef, UCHTTPContract, UCInput, UCManager, UCOPIBase } from '../../uc/index.js'; import type { OpenAPISpec } from '../lib/openapi/types.js'; import type { ServerManager } from '../lib/server/ServerManager.js'; export declare class NextJSServerManager implements ServerManager { overrideUCManager(_ucManager: UCManager): void; init(): Promise<void>; initSync(): void; mount<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined>(_appManifest: AppManifest, _ucd: UCDef<I, OPI0, OPI1>, _contract: UCHTTPContract): Promise<void>; mountSync<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined>(_appManifest: AppManifest, _ucd: UCDef<I, OPI0, OPI1>, _contract: UCHTTPContract): void; mountMCP(_ucs: ProductUCsLoaderOutput, _at: URLPath): Promise<void>; mountOpenAPISpec(_spec: OpenAPISpec, _at: URLPath): Promise<void>; mountStaticDir(_dirPath: DirPath): Promise<void>; start(): Promise<void>; stop(): Promise<void>; warmUp(): Promise<void>; }