import { default as React, Dispatch, RefObject } from 'react'; import { DocViewerRef, IDragDropConfig, IDocument } from '..'; import { DocViewerProps } from '../DocViewer'; import { MainStateActions } from './actions'; import { IMainState } from './mainStateReducer'; export interface DocViewerProviderRef { handleFilesDropped: (files: File[]) => Promise; } interface ExtendedDocViewerProps extends DocViewerProps { dragDropConfig?: IDragDropConfig; providerRef?: RefObject; } declare const DocViewerContext: React.Context<{ state: IMainState; dispatch: Dispatch; addDroppedDocuments?: ((documents: IDocument[]) => void) | undefined; }>; declare const DocViewerProvider: React.ForwardRefExoticComponent>; export { DocViewerContext, DocViewerProvider };