import type { InputMessage, OutputMessage } from './types.js'; /** * Parse strfy messages from stdin. * strfry may batch multiple messages at once. * * @example * ```ts * // Loop through strfry input messages * for await (const msg of readStdin()) { * // handle `msg` * } * ``` */ declare function readStdin(): AsyncGenerator; /** Writes the output message to stdout. */ declare function writeStdout(msg: OutputMessage): void; export { readStdin, writeStdout };