/** Default cap for remote resources before a viewer hands them to a parser. */ export declare const DEFAULT_MAX_RESOURCE_BYTES:number; /** Independent CPU/object-cardinality ceiling for hostile tiny-chunk streams. */ export declare const MAX_RESOURCE_STREAM_CHUNKS=65536;export declare const DEFAULT_MAX_TABLE_ROWS=10000;export declare const DEFAULT_MAX_TABLE_COLUMNS=1000;export declare class LyraResourceLimitError extends Error{constructor(message?:string);} /** Marks a deliberately localized component message safe to show to users. */ export declare class LyraUserFacingError extends Error{constructor(message:string);} /** A validated, absolute request URL paired with the browsing context that owns the requesting * element. Keeping the owner alongside the URL prevents an adopted element from accidentally * using the parent realm's `fetch()` after resolving against a different document's base URL. */ export interface OwnerFetchTarget{readonly url:string;readonly view:Window&typeof globalThis;} /** Resolves a consumer-supplied fetch source against an element's current owner document. * * The source is checked both before and after URL resolution: the first check rejects executable * or navigation-only schemes before they reach any URL sink, while the second preserves that * allowlist for the absolute result. A disconnected element or detached document has no active * resource lifecycle (and the latter has no meaningful fetch realm), so both deliberately fail * closed. */ export declare function resolveOwnerFetchTarget(element:Element,source:unknown):OwnerFetchTarget|null;export declare function isAbortError(error:unknown):boolean;export declare function isResourceLimitError(error:unknown):boolean; /** Rejects tabular dimensions before the data is retained or rendered. */ export declare function assertTableDimensions(rowCount:number,columnCount:number,maxRows?:number,maxColumns?:number):void; /** Rejects parsed tabular data before it is retained or rendered. */ export declare function assertTableSize(rows:readonly unknown[][],maxRows?:number,maxColumns?:number):void; /** Reads a response with a hard cap, including when the server omits Content-Length. */ export declare function readResponseArrayBuffer(response:Response,maxBytes?:number):Promise;export declare function readResponseText(response:Response,maxBytes?:number):Promise;