import * as React from 'react';
import type { Fallbacks, ContentLoadingVariant } from "./types.mjs";
export interface CodeHighlighterFallbackContext {
  extraVariants?: Record<string, ContentLoadingVariant>;
  /**
   * Callback used by `useCodeFallback` to hoist fallback data
   * back to `CodeHighlighterClient` so it can derive text dictionaries
   * for decompressing `hastCompressed` payloads.
   */
  setFallbackHasts?: (variantName: string, hasts: Fallbacks) => void;
  /**
   * Callback invoked by `useCodeFallback` in an effect to signal that
   * the hook was used. Allows the parent to detect when a ContentLoading
   * component forgets to call the hook.
   */
  onHookCalled?: () => void;
}
export declare const CodeHighlighterFallbackContext: React.Context<CodeHighlighterFallbackContext | undefined>;
export declare function useCodeHighlighterFallbackContext(): CodeHighlighterFallbackContext;