export declare const TEMPLATE_SOURCE_TIMEOUT_CODE: 'template-source-timeout'; export declare const TEMPLATE_SOURCE_TOO_LARGE_CODE: 'template-source-too-large'; export declare function getExternalTemplateTimeoutMs(): number; export declare function getExternalTemplateConfigMaxBytes(): number; export declare function getExternalTemplatePackageJsonMaxBytes(): number; export declare function getExternalTemplateMetadataMaxBytes(): number; export declare function getExternalTemplateTarballMaxBytes(): number; export declare function createExternalTemplateTimeoutError(label: string, timeoutMs: number): Error & { code: typeof TEMPLATE_SOURCE_TIMEOUT_CODE; }; export declare function createExternalTemplateTooLargeError(label: string, maxBytes: number): Error & { code: typeof TEMPLATE_SOURCE_TOO_LARGE_CODE; }; export declare function assertExternalTemplateFileSize(filePath: string, options: { label: string; maxBytes: number; }): void; export declare function withExternalTemplateTimeout(label: string, task: Promise | (() => Promise), timeoutMs?: number): Promise; export declare function fetchWithExternalTemplateTimeout(input: string, options: { init?: RequestInit; label: string; timeoutMs?: number; }): Promise; export declare function readJsonResponseWithLimit(response: Response, options: { label: string; maxBytes: number; }): Promise>; export declare function readBufferResponseWithLimit(response: Response, options: { label: string; maxBytes: number; }): Promise;