import React from 'react'; import { StoreType } from '../model/store.js'; import { TextElementType } from '../model/text-model.js'; type ShapeProps = { store: StoreType; element: TextElementType; }; export { getDir } from '@polotno/core/text-html'; export declare const useFontLoader: (store: StoreType, fontFamily: string, fontStyle?: string, fontWeight?: string, sampleText?: string) => boolean[]; export declare const useFontFamiliesLoader: (store: StoreType, families: string[], fontStyle?: string, fontWeight?: string, sampleText?: string) => boolean[]; export declare const getLineHeight: ({ fontLoaded, fontFamily, fontSize, lineHeight, }: { fontFamily: any; fontLoaded: any; fontSize: any; lineHeight: any; }) => number; export declare function usePrevious(value: any): any; export { getCurvePath } from '@polotno/core/text-html'; export declare const TextElement: (({ element, store }: ShapeProps) => React.JSX.Element) & React.NamedExoticComponent & { readonly type: ({ element, store }: ShapeProps) => React.JSX.Element; };