import { McpServer } from '@modelcontextprotocol/server'; import type { ToolRegistration, ToolHandlerConfig } from '../../../types/index.js'; import { type ResourceDefinition, type PromptDefinition } from '../../registration.js'; import type { ServerContext, ServerOptions } from '../types.js'; /** * Default maximum number of array elements and object properties allowed across a * single tool input payload before Zod validation runs. */ export declare const DEFAULT_MAX_TOOL_INPUT_ELEMENTS = 25000; /** * Resolves the configured `maxToolInputElements` option into the value passed to `McpServer`. * - `undefined` -> `DEFAULT_MAX_TOOL_INPUT_ELEMENTS` (25,000) * - `0` or `Infinity` -> `Infinity` (disables the SDK's element limit check) * - positive number -> passed through as-is */ export declare function resolveEffectiveMaxToolInputElements(configured: number | undefined): number; export declare function createServerInstance(context: ServerContext, options: ServerOptions, prompts: PromptDefinition[], resources: ResourceDefinition[], allTools: ToolRegistration[], allToolNames: Set, customToolHandlerConfig: ToolHandlerConfig): McpServer; //# sourceMappingURL=register-tools.d.ts.map