/** * Utilities for reading input from stdin. */ /** * Check if stdin has data available (is being piped to). * Returns true if stdin is not a TTY (i.e., data is being piped). */ export declare function hasStdinData(): boolean; /** * Read all data from stdin and return as a string. * Returns empty string if stdin is a TTY (no piped data). */ export declare function readStdin(): Promise; /** * Parse IDs from a string input. * Accepts IDs separated by newlines, commas, or whitespace. * Returns an array of valid positive integers. * * @param input - Raw string input containing IDs * @returns Array of parsed integer IDs * @throws Error if any ID is invalid (not a positive integer) */ export declare function parseIds(input: string): number[]; /** * Read and parse IDs from stdin. * Combines readStdin() and parseIds(). * * @returns Array of parsed integer IDs, or empty array if no stdin data */ export declare function readIdsFromStdin(): Promise; //# sourceMappingURL=stdin.d.ts.map