import React from 'react'; declare global { interface Window { MathJax: { [key: string]: any; }; } } export type ContextProps = { options?: {}; src?: string; }; export declare function useTexSVG({ latex, onSuccess, onError, }?: { latex?: string; onSuccess?: (html: HTMLElement) => void; onError?: (html: HTMLElement) => void; }): [HTMLElement | null, { error: boolean; isLoading: boolean; }]; export type Tex2SVGProps = { [key: string]: any; } & { latex: string; onError?: (html: HTMLElement) => void; onSuccess?: (html: HTMLElement) => void; inline?: boolean; }; export declare const Tex2SVG: React.FC; export declare const Tex2SVGWithProvider: React.FC; export declare const MathJaxProvider: React.FC; export declare function useTexChtml({ latex, inline, onSuccess, onError, }?: { latex?: string; inline?: boolean; onSuccess?: (html: HTMLElement) => void; onError?: (html: HTMLElement) => void; }): [HTMLElement | null, { error: boolean; isLoading: boolean; }]; export declare const Tex2Chtml: React.FC; export declare const Tex2ChtmlWithProvider: React.FC; export default Tex2SVGWithProvider;