UNPKG

@chalkbooks/react-doc-viewer

Version:
14 lines (13 loc) 539 B
import React, { Dispatch } from "react"; import { DocViewerRef } from ".."; import { DocViewerProps } from "../DocViewer"; import { MainStateActions } from "./actions"; import { IMainState } from "./mainStateReducer"; declare const DocViewerContext: React.Context<{ state: IMainState; dispatch: Dispatch<MainStateActions>; }>; declare const DocViewerProvider: React.ForwardRefExoticComponent<DocViewerProps & { children?: React.ReactNode; } & React.RefAttributes<DocViewerRef>>; export { DocViewerContext, DocViewerProvider };