import type { HighlightLanguage } from '../HighlightExtended.js'; /** * List of supported languages and their respective file extensions of the CodeSnippet. * @internal */ export declare const LANGUAGE_EXTENSION_MAP: Record; /** * Derives the file extension (including the leading dot) for a given highlight * language. We fall back to `.txt` when the language has no direct file-extension * convention, when it isn't part of the map at all, or when no language is given. * @param language - The syntax-highlighting language of the snippet, if it's set. * @internal */ export declare function getFileExtension(language?: HighlightLanguage): string; /** * Resolves the file name to use when downloading the snippet. * Falls back to `code-snippet.` when `fileName` is omitted or produces * an empty name after sanitization. * @param fileName - Consumer-provided file name, with or without an extension. * @param language - The snippet's highlight language, used to derive the extension * when `fileName` carries none or when sanitization results in an empty extension. * @internal */ export declare function resolveDownloadFileName(fileName: string | undefined, language: HighlightLanguage | undefined): string; //# sourceMappingURL=download-utils.d.ts.map