import { Ref, ComputedRef } from 'vue'; import { I18n } from 'vue-i18n'; import { Instance, AnnotationsUnion } from 'pspdfkit'; import { AnnotationType } from '../CFileViewer.types'; import { PitcherFile } from '../../../types/file.types'; import { MiniPage, File, FileRetrieve } from '../../../../types/openapi'; import { CLIENT_TYPE } from '../../../constants/cdp.const'; import { default as CFileViewerBottomPdf } from './CFileViewerBottom.pdf.vue'; import { CanvasFile } from '../../../apps/canvas-builder/types/canvas'; import { SupportedLocale } from '../../../types/i18n.types'; import { OrganizationSettings } from '../../../types/organizationSettings.types'; import { InstanceSettings } from '../../../types/instanceSettings.types'; import { LaunchDarklyEnv } from '../../../types/launchDarkly.types'; import { SaveLinkAnnotationPayload } from './CFileViewer.pdf.link.types'; declare const fileViewerSettings: Readonly>; interface FileViewerActions { onCloseFile: () => void; onShowPageMetadata: (pageIndex: number) => void; } interface FileViewerPdfReturnType { viewPdf: (file: PitcherFile | CanvasFile | null, pageIndex: MiniPage['page_index']) => Promise; onPdfFullscreen: (force?: boolean) => void; updateFileViewerSettings: (settings: Partial) => void; cleanupPspdfKit: () => void; resetAnnotationChanges: () => void; isSearchOpen: Ref; isThumbnailsOpen: Ref; isTextAnnotationOpen: Ref; isLinkAnnotationOpen: Ref; currentPageIndex: Ref; isAnnotationOpen: Ref; areAnnotationsModified: Ref; selectedAnnotationType: Ref>; isSwitchingInteractionMode: Ref; fileViewerSettings: typeof fileViewerSettings; isFullscreen: Ref; currentLinkAnnotation: Ref; showLinkAnnotationPopover: ComputedRef; onToggleLinkAnnotation: () => void; onCloseLinkAnnotationPopover: () => void; onSaveLinkAnnotation: (data: SaveLinkAnnotationPayload) => void; hasHotspotsOnCurrentPage: Ref; } declare const _default: ({ pdfViewerEl, bottomBarRef, i18n, appLocale, actions, assetsPrefix, clientType, context, pitcherSettings, launchDarkly, emit, fileId, fetchFileById, }: { pdfViewerEl: Ref; bottomBarRef: Ref | null>; i18n: I18n; appLocale?: SupportedLocale; actions: FileViewerActions; assetsPrefix: string; clientType: (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE]; context?: Record; pitcherSettings?: ComputedRef; launchDarkly: ComputedRef; fileId: ComputedRef; emit: (name: string, ...args: any[]) => void; fetchFileById?: (id: FileRetrieve["id"]) => Promise; }) => FileViewerPdfReturnType; export default _default;