import type { CodeLanguageType } from './types/cells.mjs'; export declare function isBrowser(): boolean; export declare function randomid(byteSize?: number): string; export declare function validFilename(filename: string): boolean; export declare function isJavaScriptFile(filename: string): boolean; export declare function isTypeScriptFile(filename: string): boolean; export declare function languageFromFilename(filename: string): CodeLanguageType; export declare function extensionsForLanguage(language: CodeLanguageType): string[]; export declare function getDefaultExtensionForLanguage(language: CodeLanguageType): ".js" | ".ts"; /** * Convert a ReadableStream to an AsyncIterable. * * ReadableStreams implement this natively in recent node versions. Unfortunately, older * node versions, most browsers, and the TypeScript type system do not support it yet. * * Example: * * for await (const chunk of StreamToIterable(stream)) { * // Do stuff with chunk * } * * @param stream A ReadableStream. * @returns An AsyncIterable over the stream contents. */ export declare function StreamToIterable(stream: ReadableStream): AsyncIterable; //# sourceMappingURL=utils.d.mts.map