import type { RecordAny } from "./types/index.js"; declare function sleep(ms: number): Promise; declare function addProtocolIfNotPresent(host: string): string; declare function addTrailingSlash(url: string): string; /** Reads a byte stream to completion and decodes it as UTF-8 text. */ declare function readStreamAsText(stream: ReadableStream): Promise; /** * Parses task document payloads returned by `tasks/{uid}/documents`. * * @remarks * The endpoint may return either valid JSON (single object or array), NDJSON, * or concatenated JSON objects without separators. This parser normalizes all * of these formats into a regular document array. */ declare function parseTaskDocuments(rawDocuments: string): D[]; export { sleep, addProtocolIfNotPresent, addTrailingSlash, readStreamAsText, parseTaskDocuments, }; //# sourceMappingURL=utils.d.ts.map