import { default as React, PureComponent } from 'react'; import { EpubView, IEpubViewStyle, IEpubViewProps } from '..'; import { IReactReaderStyle } from './style'; import { NavItem } from 'epubjs'; export type IReactReaderProps = IEpubViewProps & { title?: string; showToc?: boolean; readerStyles?: IReactReaderStyle; epubViewStyles?: IEpubViewStyle; swipeable?: boolean; isRTL?: boolean; pageTurnOnScroll?: boolean; searchQuery?: string; contextLength?: number; onSearchResults?: (results: SearchResult[]) => void; }; type SearchResult = { cfi: string; excerpt: string; }; type IReactReaderState = { isLoaded: boolean; expandedToc: boolean; toc: NavItem[]; }; export declare class ReactReader extends PureComponent { state: Readonly; readerRef: React.RefObject; constructor(props: IReactReaderProps); toggleToc: () => void; next: () => void; prev: () => void; onTocChange: (toc: NavItem[]) => void; renderToc(): import("react/jsx-runtime").JSX.Element; setLocation: (loc: string) => void; renderTocToggle(): import("react/jsx-runtime").JSX.Element; handleWheel: (event: WheelEvent) => void; attachWheelListener: () => void; searchInBook: (query?: string) => Promise; componentDidUpdate(prevProps: IReactReaderProps): void; render(): import("react/jsx-runtime").JSX.Element; } export {};