import { ServerAdapterPlugin } from './plugins/types.cjs'; import { FetchAPI, ServerAdapter, ServerAdapterBaseObject, ServerAdapterRequestHandler } from './types.cjs'; export interface ServerAdapterOptions { plugins?: ServerAdapterPlugin[]; fetchAPI?: Partial; /** * Node.js only! * * If true, the server adapter will dispose itself when the process is terminated. * If false, you have to dispose the server adapter by using the `dispose` method, * or [Explicit Resource Management](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html) */ disposeOnProcessTerminate?: boolean; } declare function createServerAdapter = ServerAdapterRequestHandler>(serverAdapterRequestHandler: THandleRequest, options?: ServerAdapterOptions): ServerAdapter>; declare function createServerAdapter>(serverAdapterBaseObject: TBaseObject, options?: ServerAdapterOptions): ServerAdapter; export { createServerAdapter };