/**
 * stdio transport: newline-delimited JSON-RPC in, newline-delimited JSON out.
 * Nothing else may be written to stdout — a stray log breaks the frame stream.
 */
import { type McpServer } from './create-server.js';
export type StdioStreams = {
    input: NodeJS.ReadableStream;
    output: NodeJS.WritableStream;
};
/** Stops reading and detaches the listener. */
export type Disconnect = () => void;
export declare function connectStdio(server: McpServer, streams?: StdioStreams): Disconnect;
