import { ActionsType } from '../../lib/hyperapp'; import * as Layout from './layout'; import * as PasswordForm from './passwordForm'; import * as NavigationPanel from './navigationPanel'; import * as PdfDocument from './pdfDocument'; import * as Search from './search'; import { WebViewerOptionsInterface } from '../WebViewerOptions'; import { CanvasModule } from '../../modules/CanvasModule'; import { FileOpenArgs } from '../PdfWebViewer'; /** internal */ export interface RootState { licenseFeatures: { annotate: boolean; fillFormFields: boolean; pageRotation: boolean; }; scriptsLoaded: boolean; appInitialized: boolean; hasDocument?: boolean; fileDropEnabled: boolean; showPasswordForm: boolean; passwordDialogTempPdfFile: File | string | null; passwordDialogTempFdfFile?: File | string | null; showOpenFileErrorDialog: boolean; showUnsavedChangesDialog: boolean; unsavedChangesDialogDontSave: boolean; fileOpenArgs: FileOpenArgs | null; unsavedChangesDialogTempFdfFile?: File | string | null; showLoadingIndicator: boolean; showSaveIndicator: boolean; hasError: boolean; errorMessage: string; layout: Layout.LayoutState; passwordForm: PasswordForm.PasswordFormState; navigationPanel: NavigationPanel.NavigationPanelState; pdfDocument: PdfDocument.PdfDocumentState; search: Search.SearchState; options: WebViewerOptionsInterface; canvasModules: CanvasModule[]; closeCallback?: () => void; } /** internal */ export declare const createState: (options: WebViewerOptionsInterface) => any; /** internal */ export interface ActionDefinitions { layout: Layout.LayoutActions; passwordForm: PasswordForm.PasswordFormActions; navigationPanel: NavigationPanel.NavigationPanelActions; pdfDocument: PdfDocument.PdfDocumentActions; search: Search.SearchActions; loadScriptsCompleted(): RootState; initializeAppFulfilled(settings: { licenseFeatures: { annotate: boolean; fillFormFields: boolean; pageRotation: boolean; }; }): RootState; initializeAppRejected(error: string): RootState; setCanvasModules(canvasModules: CanvasModule[]): RootState; loadDocumentBegin(): RootState; loadDocumentFulfilled(): RootState; loadDocumentCancel(): RootState; loadDocumentPasswordForm(fileOpenArgs: FileOpenArgs): RootState; closeDocument(): RootState; showConfirmUnsavedChangesDialog(args: FileOpenArgs | null, closeCallback?: () => void): RootState; unsavedChangesDialogCancel(): RootState; unsavedChangesDialogFileSaved(): RootState; unsavedChangesDialogDontSave(): RootState; loadDocumentRejected(error: string): RootState; loadDocumentConfirmRejected(): RootState; saveDocumentBegin(): RootState; saveDocumentFulfilled(): RootState; saveDocumentRejected(error: string): RootState; setError(error: string): RootState; getState(): RootState; open(file: File): RootState; } /** internal */ export declare const actions: ActionsType;