import type { DynamicModule, INestApplicationContext, LogLevel, Type } from '@nestjs/common'; export interface StdioBootstrapOptions { /** Log levels to emit. Defaults to all levels. */ logLevels?: LogLevel[]; } /** * Bootstraps a standalone NestJS application context for STDIO MCP transport. * * Automatically redirects all NestJS logging to stderr so that stdout remains * reserved for JSON-RPC messages. Calling `NestFactory.create()` or * `createApplicationContext()` without this helper risks corrupting the STDIO * protocol stream with log output. * * Log-level filtering priority: * 1. `StdioBootstrapOptions.logLevels` (explicit caller override) * 2. `McpModuleOptions.logging` (from `McpModule.forRoot()`) * 3. All levels (default) * * @example * async function main() { * await bootstrapStdioApp(AppModule); * } * main().catch(console.error); */ export declare function bootstrapStdioApp(module: Type | DynamicModule, options?: StdioBootstrapOptions): Promise; //# sourceMappingURL=bootstrap-stdio.d.ts.map