import type { Readable } from 'node:stream'; export interface StdinLike extends AsyncIterable { isTTY?: boolean | undefined; } /** * Read request params piped into the CLI, e.g., * * ``` * $ echo '{"device_id": "..."}' | seam locks unlock-door --json * $ seam locks unlock-door --json < params.json * ``` * * Returns null when stdin is a terminal or is empty, * so an interactive session is never blocked waiting for input. */ export declare const readStdinJson: (stdin?: StdinLike | Readable) => Promise | null>; /** * Parse JSON request params, e.g., from stdin or `--json '{"limit": 2}'`. * * Returns null when there is nothing to parse. */ export declare const parseJsonParams: (raw: string, source: string) => Record | null;