import { AnnotationLineMap, AnnotationSide, AnnotationSpan, BaseCodeOptions, BaseDiffOptions, BundledLanguage, ChangeContent, ChangeTypes, CodeColumnType, CodeToHastOptions, ContextContent, DecorationItem, DiffLineAnnotation, DiffLineEventBaseProps, DiffsHighlighter, DiffsThemeNames, ExpansionDirections, ExtensionFormatMap, FileContents, FileDiffMetadata, ForceDiffPlainTextOptions, ForceFilePlainTextOptions, GapSpan, HighlighterTypes, Hunk, HunkData, HunkExpansionRegion, HunkLineType, HunkSeparators, LanguageRegistration, LineAnnotation, LineDiffTypes, LineEventBaseProps, LineInfo, LineSpans, LineTypes, ObservedAnnotationNodes, ObservedGridNodes, ParsedPatch, PrePropertiesConfig, RenderDiffFilesResult, RenderDiffOptions, RenderDiffResult, RenderFileMetadata, RenderFileOptions, RenderFileResult, RenderHeaderMetadataCallback, RenderHeaderMetadataProps, RenderRange, RenderWindow, RenderedDiffASTCache, RenderedFileASTCache, SelectionSide, SharedRenderState, ShikiTransformer, SupportedLanguages, ThemeRegistrationResolved, ThemeTypes, ThemedDiffResult, ThemedFileResult, ThemedToken, ThemesType, VirtualFileMetrics, VirtualWindowSpecs } from "./types.js";
import { GetLineIndexUtility, LineSelectionManager, LineSelectionOptions, SelectedLineRange, pluckLineSelectionOptions } from "./managers/LineSelectionManager.js";
import { GetHoveredLineResult, LogTypes, MouseEventManager, MouseEventManagerBaseOptions, MouseEventManagerMode, MouseEventManagerOptions, OnDiffLineClickProps, OnDiffLineEnterLeaveProps, OnLineClickProps, OnLineEnterLeaveProps, pluckMouseEventOptions } from "./managers/MouseEventManager.js";
import { ResizeManager } from "./managers/ResizeManager.js";
import { FileRenderResult, FileRenderer, FileRendererOptions } from "./renderers/FileRenderer.js";
import { File, FileHyrdateProps, FileOptions, FileRenderProps } from "./components/File.js";
import { CodeToTokenTransformStreamOptions, RecallToken, ShikiStreamTokenizerEnqueueResult, ShikiStreamTokenizerOptions } from "./shiki-stream/types.js";
import { ShikiStreamTokenizer } from "./shiki-stream/tokenizer.js";
import { CodeToTokenTransformStream } from "./shiki-stream/stream.js";
import { FileStream, FileStreamOptions } from "./components/FileStream.js";
import { Virtualizer, VirtualizerConfig } from "./components/Virtualizer.js";
import { VirtualizedFile } from "./components/VirtualizedFile.js";
import { VirtualizedFileDiff } from "./components/VirtualizedFileDiff.js";
import { ALTERNATE_FILE_NAMES_GIT, COMMIT_METADATA_SPLIT, CORE_CSS_ATTRIBUTE, DEFAULT_COLLAPSED_CONTEXT_THRESHOLD, DEFAULT_EXPANDED_REGION, DEFAULT_RENDER_RANGE, DEFAULT_THEMES, DEFAULT_VIRTUAL_FILE_METRICS, DIFFS_TAG_NAME, FILENAME_HEADER_REGEX, FILENAME_HEADER_REGEX_GIT, FILE_CONTEXT_BLOB, GIT_DIFF_FILE_BREAK_REGEX, HEADER_METADATA_SLOT_ID, HUNK_HEADER, INDEX_LINE_METADATA, SPLIT_WITH_NEWLINES, UNIFIED_DIFF_FILE_BREAK_REGEX, UNSAFE_CSS_ATTRIBUTE } from "./constants.js";
import { areLanguagesAttached } from "./highlighter/languages/areLanguagesAttached.js";
import { attachResolvedLanguages } from "./highlighter/languages/attachResolvedLanguages.js";
import { cleanUpResolvedLanguages } from "./highlighter/languages/cleanUpResolvedLanguages.js";
import { AttachedLanguages, RegisteredCustomLanguages, ResolvedLanguages, ResolvingLanguages } from "./highlighter/languages/constants.js";
import { getResolvedLanguages } from "./highlighter/languages/getResolvedLanguages.js";
import { getResolvedOrResolveLanguage } from "./highlighter/languages/getResolvedOrResolveLanguage.js";
import { hasResolvedLanguages } from "./highlighter/languages/hasResolvedLanguages.js";
import { registerCustomLanguage } from "./highlighter/languages/registerCustomLanguage.js";
import { resolveLanguage } from "./highlighter/languages/resolveLanguage.js";
import { resolveLanguages } from "./highlighter/languages/resolveLanguages.js";
import { disposeHighlighter, getHighlighterIfLoaded, getSharedHighlighter, isHighlighterLoaded, isHighlighterLoading, isHighlighterNull, preloadHighlighter } from "./highlighter/shared_highlighter.js";
import { areThemesAttached } from "./highlighter/themes/areThemesAttached.js";
import { attachResolvedThemes } from "./highlighter/themes/attachResolvedThemes.js";
import { cleanUpResolvedThemes } from "./highlighter/themes/cleanUpResolvedThemes.js";
import { AttachedThemes, RegisteredCustomThemes, ResolvedThemes, ResolvingThemes } from "./highlighter/themes/constants.js";
import { getResolvedOrResolveTheme } from "./highlighter/themes/getResolvedOrResolveTheme.js";
import { getResolvedThemes } from "./highlighter/themes/getResolvedThemes.js";
import { hasResolvedThemes } from "./highlighter/themes/hasResolvedThemes.js";
import { registerCustomCSSVariableTheme } from "./highlighter/themes/registerCustomCSSVariableTheme.js";
import { registerCustomTheme } from "./highlighter/themes/registerCustomTheme.js";
import { resolveTheme } from "./highlighter/themes/resolveTheme.js";
import { resolveThemes } from "./highlighter/themes/resolveThemes.js";
import { ScrollSyncManager } from "./managers/ScrollSyncManager.js";
import { queueRender } from "./managers/UniversalRenderingManager.js";
import { DiffHunksRenderer, HunksRenderResult } from "./renderers/DiffHunksRenderer.js";
import { SVGSpriteNames, SVGSpriteSheet } from "./sprite.js";
import { areDiffLineAnnotationsEqual } from "./utils/areDiffLineAnnotationsEqual.js";
import { areFilesEqual } from "./utils/areFilesEqual.js";
import { areHunkDataEqual } from "./utils/areHunkDataEqual.js";
import { areLineAnnotationsEqual } from "./utils/areLineAnnotationsEqual.js";
import { areObjectsEqual } from "./utils/areObjectsEqual.js";
import { areOptionsEqual } from "./utils/areOptionsEqual.js";
import { arePrePropertiesEqual } from "./utils/arePrePropertiesEqual.js";
import { areRenderRangesEqual } from "./utils/areRenderRangesEqual.js";
import { areSelectionsEqual } from "./utils/areSelectionsEqual.js";
import { areThemesEqual } from "./utils/areThemesEqual.js";
import { areVirtualWindowSpecsEqual } from "./utils/areVirtualWindowSpecsEqual.js";
import { areWorkerStatsEqual } from "./utils/areWorkerStatsEqual.js";
import { cleanLastNewline } from "./utils/cleanLastNewline.js";
import { createAnnotationElement } from "./utils/createAnnotationElement.js";
import { createAnnotationWrapperNode } from "./utils/createAnnotationWrapperNode.js";
import { createEmptyRowBuffer } from "./utils/createEmptyRowBuffer.js";
import { CreateFileHeaderElementProps, createFileHeaderElement } from "./utils/createFileHeaderElement.js";
import { createHoverContentNode } from "./utils/createHoverContentNode.js";
import { createNoNewlineElement } from "./utils/createNoNewlineElement.js";
import { createPreElement, createPreWrapperProperties } from "./utils/createPreElement.js";
import { createRowNodes } from "./utils/createRowNodes.js";
import { createSeparator } from "./utils/createSeparator.js";
import { createSpanFromToken } from "./utils/createSpanNodeFromToken.js";
import { createStyleElement } from "./utils/createStyleElement.js";
import { createTransformerWithState } from "./utils/createTransformerWithState.js";
import { createUnsafeCSSStyleNode } from "./utils/createUnsafeCSSStyleNode.js";
import { createWindowFromScrollPosition } from "./utils/createWindowFromScrollPosition.js";
import { wrapCoreCSS, wrapUnsafeCSS } from "./utils/cssWrappers.js";
import { diffAcceptRejectHunk } from "./utils/diffAcceptRejectHunk.js";
import { formatCSSVariablePrefix } from "./utils/formatCSSVariablePrefix.js";
import { CUSTOM_EXTENSION_TO_FILE_FORMAT, EXTENSION_TO_FILE_FORMAT, extendFileFormatMap, getFiletypeFromFileName } from "./utils/getFiletypeFromFileName.js";
import { getHighlighterOptions } from "./utils/getHighlighterOptions.js";
import { getHighlighterThemeStyles } from "./utils/getHighlighterThemeStyles.js";
import { getHunkSeparatorSlotName } from "./utils/getHunkSeparatorSlotName.js";
import { getIconForType } from "./utils/getIconForType.js";
import { getLineAnnotationName } from "./utils/getLineAnnotationName.js";
import { getLineEndingType } from "./utils/getLineEndingType.js";
import { getLineNodes } from "./utils/getLineNodes.js";
import { getOrCreateCodeNode } from "./utils/getOrCreateCodeNode.js";
import { getSingularPatch } from "./utils/getSingularPatch.js";
import { getThemes } from "./utils/getThemes.js";
import { getTotalLineCountFromHunks } from "./utils/getTotalLineCountFromHunks.js";
import { createGutterGap, createGutterItem, createGutterWrapper, createHastElement, createIconElement, createTextNodeElement, findCodeElement } from "./utils/hast_utils.js";
import { isDefaultRenderRange } from "./utils/isDefaultRenderRange.js";
import { isWorkerContext } from "./utils/isWorkerContext.js";
import { createDiffSpanDecoration, pushOrJoinSpan } from "./utils/parseDiffDecorations.js";
import { parseDiffFromFile } from "./utils/parseDiffFromFile.js";
import { ParsedLine, parseLineType } from "./utils/parseLineType.js";
import { parsePatchFiles, processFile, processPatch } from "./utils/parsePatchFiles.js";
import { prerenderHTMLIfNecessary } from "./utils/prerenderHTMLIfNecessary.js";
import { processLine } from "./utils/processLine.js";
import { renderDiffWithHighlighter } from "./utils/renderDiffWithHighlighter.js";
import { renderFileWithHighlighter } from "./utils/renderFileWithHighlighter.js";
import { setLanguageOverride } from "./utils/setLanguageOverride.js";
import { setPreNodeProperties } from "./utils/setWrapperNodeProps.js";
import { trimPatchContext } from "./utils/trimPatchContext.js";
import { FileDiff, FileDiffHydrationProps, FileDiffOptions, FileDiffRenderProps } from "./components/FileDiff.js";
import { codeToHtml, createCssVariablesTheme as createCSSVariablesTheme } from "shiki";
export { ALTERNATE_FILE_NAMES_GIT, AnnotationLineMap, AnnotationSide, AnnotationSpan, AttachedLanguages, AttachedThemes, BaseCodeOptions, BaseDiffOptions, BundledLanguage, COMMIT_METADATA_SPLIT, CORE_CSS_ATTRIBUTE, CUSTOM_EXTENSION_TO_FILE_FORMAT, ChangeContent, ChangeTypes, CodeColumnType, CodeToHastOptions, CodeToTokenTransformStream, CodeToTokenTransformStreamOptions, ContextContent, CreateFileHeaderElementProps, DEFAULT_COLLAPSED_CONTEXT_THRESHOLD, DEFAULT_EXPANDED_REGION, DEFAULT_RENDER_RANGE, DEFAULT_THEMES, DEFAULT_VIRTUAL_FILE_METRICS, DIFFS_TAG_NAME, DecorationItem, DiffHunksRenderer, DiffLineAnnotation, DiffLineEventBaseProps, DiffsHighlighter, DiffsThemeNames, EXTENSION_TO_FILE_FORMAT, ExpansionDirections, ExtensionFormatMap, FILENAME_HEADER_REGEX, FILENAME_HEADER_REGEX_GIT, FILE_CONTEXT_BLOB, File, FileContents, FileDiff, FileDiffHydrationProps, FileDiffMetadata, FileDiffOptions, FileDiffRenderProps, FileHyrdateProps, FileOptions, FileRenderProps, FileRenderResult, FileRenderer, FileRendererOptions, FileStream, FileStreamOptions, ForceDiffPlainTextOptions, ForceFilePlainTextOptions, GIT_DIFF_FILE_BREAK_REGEX, GapSpan, GetHoveredLineResult, GetLineIndexUtility, HEADER_METADATA_SLOT_ID, HUNK_HEADER, HighlighterTypes, Hunk, HunkData, HunkExpansionRegion, HunkLineType, HunkSeparators, HunksRenderResult, INDEX_LINE_METADATA, LanguageRegistration, LineAnnotation, LineDiffTypes, LineEventBaseProps, LineInfo, LineSelectionManager, LineSelectionOptions, LineSpans, LineTypes, LogTypes, MouseEventManager, MouseEventManagerBaseOptions, MouseEventManagerMode, MouseEventManagerOptions, ObservedAnnotationNodes, ObservedGridNodes, OnDiffLineClickProps, OnDiffLineEnterLeaveProps, OnLineClickProps, OnLineEnterLeaveProps, ParsedLine, ParsedPatch, PrePropertiesConfig, RecallToken, RegisteredCustomLanguages, RegisteredCustomThemes, RenderDiffFilesResult, RenderDiffOptions, RenderDiffResult, RenderFileMetadata, RenderFileOptions, RenderFileResult, RenderHeaderMetadataCallback, RenderHeaderMetadataProps, RenderRange, RenderWindow, RenderedDiffASTCache, RenderedFileASTCache, ResizeManager, ResolvedLanguages, ResolvedThemes, ResolvingLanguages, ResolvingThemes, SPLIT_WITH_NEWLINES, SVGSpriteNames, SVGSpriteSheet, ScrollSyncManager, SelectedLineRange, SelectionSide, SharedRenderState, ShikiStreamTokenizer, ShikiStreamTokenizerEnqueueResult, ShikiStreamTokenizerOptions, ShikiTransformer, SupportedLanguages, ThemeRegistrationResolved, ThemeTypes, ThemedDiffResult, ThemedFileResult, ThemedToken, ThemesType, UNIFIED_DIFF_FILE_BREAK_REGEX, UNSAFE_CSS_ATTRIBUTE, VirtualFileMetrics, VirtualWindowSpecs, VirtualizedFile, VirtualizedFileDiff, Virtualizer, VirtualizerConfig, areDiffLineAnnotationsEqual, areFilesEqual, areHunkDataEqual, areLanguagesAttached, areLineAnnotationsEqual, areObjectsEqual, areOptionsEqual, arePrePropertiesEqual, areRenderRangesEqual, areSelectionsEqual, areThemesAttached, areThemesEqual, areVirtualWindowSpecsEqual, areWorkerStatsEqual, attachResolvedLanguages, attachResolvedThemes, cleanLastNewline, cleanUpResolvedLanguages, cleanUpResolvedThemes, codeToHtml, createAnnotationElement, createAnnotationWrapperNode, createCSSVariablesTheme, createDiffSpanDecoration, createEmptyRowBuffer, createFileHeaderElement, createGutterGap, createGutterItem, createGutterWrapper, createHastElement, createHoverContentNode, createIconElement, createNoNewlineElement, createPreElement, createPreWrapperProperties, createRowNodes, createSeparator, createSpanFromToken, createStyleElement, createTextNodeElement, createTransformerWithState, createUnsafeCSSStyleNode, createWindowFromScrollPosition, diffAcceptRejectHunk, disposeHighlighter, extendFileFormatMap, findCodeElement, formatCSSVariablePrefix, getFiletypeFromFileName, getHighlighterIfLoaded, getHighlighterOptions, getHighlighterThemeStyles, getHunkSeparatorSlotName, getIconForType, getLineAnnotationName, getLineEndingType, getLineNodes, getOrCreateCodeNode, getResolvedLanguages, getResolvedOrResolveLanguage, getResolvedOrResolveTheme, getResolvedThemes, getSharedHighlighter, getSingularPatch, getThemes, getTotalLineCountFromHunks, hasResolvedLanguages, hasResolvedThemes, isDefaultRenderRange, isHighlighterLoaded, isHighlighterLoading, isHighlighterNull, isWorkerContext, parseDiffFromFile, parseLineType, parsePatchFiles, pluckLineSelectionOptions, pluckMouseEventOptions, preloadHighlighter, prerenderHTMLIfNecessary, processFile, processLine, processPatch, pushOrJoinSpan, queueRender, registerCustomCSSVariableTheme, registerCustomLanguage, registerCustomTheme, renderDiffWithHighlighter, renderFileWithHighlighter, resolveLanguage, resolveLanguages, resolveTheme, resolveThemes, setLanguageOverride, setPreNodeProperties, trimPatchContext, wrapCoreCSS, wrapUnsafeCSS };