import type { ServerPlugin } from '@modern-js/types'; export declare const isInHandler: () => boolean; declare const createApp: (pwd: string, config: any, plugins: ServerPlugin[], routes: any[]) => Promise<(req: import("@modern-js/types").NodeRequest, res: import("@modern-js/types").NodeResponse) => Promise>; declare const getApp: () => (req: import("@modern-js/types").NodeRequest, res: import("@modern-js/types").NodeResponse) => Promise; declare const closeServer: () => Promise; export { createApp, getApp, closeServer };