import React from 'react'; import { ColorValue } from 'react-native'; import WebView, { WebViewProps } from 'react-native-webview'; export type Menu = { text: string; icon: string; id: string; }; export type Selection = { start?: number; end?: number; color?: ColorValue; text?: string; }; export type IWebViewProps = { width: number; height: number; menus: Menu[]; value: string; maxItems?: number; minlength?: number; selections?: Selection[]; onScroll?: (value: number) => void; css?: string; onSelect: (menu: Menu, selectedText: string) => void | Promise; injectedJavaScriptBefore?: string; injectedJavaScriptAfter?: string; contextMenuJS?: string; click?: (menuVisible: boolean) => void | Promise; scrollTop?: number; } & Omit; export type TextContextmenuRef = { webView?: WebView; }; declare const TextContextmenu: React.ForwardRefExoticComponent<{ width: number; height: number; menus: Menu[]; value: string; maxItems?: number | undefined; minlength?: number | undefined; selections?: Selection[] | undefined; onScroll?: ((value: number) => void) | undefined; css?: string | undefined; onSelect: (menu: Menu, selectedText: string) => void | Promise; injectedJavaScriptBefore?: string | undefined; injectedJavaScriptAfter?: string | undefined; contextMenuJS?: string | undefined; click?: ((menuVisible: boolean) => void | Promise) | undefined; scrollTop?: number | undefined; } & Omit & React.RefAttributes>; export default TextContextmenu; //# sourceMappingURL=index.d.ts.map