/** * Admission limits for recursive MDX module resolution. * * @module transforms/mdx/esm-module-loader/module-fetcher/limits */ /** Maximum unique modules admitted to one request-scoped dependency graph. */ export declare const MAX_MDX_MODULE_GRAPH_ENTRIES = 500; /** Maximum static module dependencies accepted from one transformed file. */ export declare const MAX_MDX_MODULE_IMPORTS_PER_FILE = 500; /** Bound independent top-level and JSX work without recursive semaphore deadlocks. */ export declare const MAX_MDX_MODULE_TRANSFORM_CONCURRENCY = 16; /** Maximum UTF-8 source bytes accepted for one fetched module. */ export declare const MAX_MDX_MODULE_CODE_BYTES: number; export declare function utf8ByteLength(value: string): number; export declare class ModuleGraphLimitError extends Error { constructor(normalizedPath: string); } export declare class ModuleImportLimitError extends Error { constructor(modulePath: string, count: number); } export declare class ModuleSourceLimitError extends Error { constructor(modulePath: string, sizeBytes: number, maxBytes: number); } export declare function assertMdxModuleImportCount(modulePath: string, count: number): void; //# sourceMappingURL=limits.d.ts.map