interface TextResult { text: string | null; tooLarge: boolean; truncated: boolean; } interface ObjectTextState extends TextResult { loading: boolean; error: string | null; corsError: boolean; } /** Fetch a text object from a presigned URL, cached per `cacheKey` so repeated mounts * download it once. `maxLines` stops the read early and `maxBytes` cuts short what it * hasn't. `tail` reads the end of the object instead of the start, and caches * separately because the same object yields different text. */ export declare function useObjectText(url: string, { maxBytes, maxLines, knownSize, cacheKey, tail, }: { maxBytes: number; maxLines?: number | undefined; knownSize?: number | undefined; cacheKey: string; tail?: boolean | undefined; }): ObjectTextState; export {};