declare module 'react-native-pdftron-free' { import { ComponentType } from 'react'; import { ViewProps } from 'react-native'; export interface DocumentViewProps extends ViewProps { documentUrl?: string; document?: string; showLeadingNavButton?: boolean; leadingNavButtonIcon?: string; onDocumentLoaded?: (url: string) => void; onDocumentError?: (error: string) => void; onLoadComplete?: (url: string) => void; onError?: (error: string) => void; onLeadingNavButtonPressed?: () => void; } export interface LicenseStatus { isValid: boolean; isDemo: boolean; isFree: boolean; message: string; } export interface RNPdftronInterface { initialize(licenseKey?: string): boolean; enableJavaScript(enable?: boolean): boolean; getNativeModule(): any; isInitialized(): boolean; getLicenseStatus(): LicenseStatus; setLicenseKey(key: string): boolean; getLicenseKey(): string; isDemoMode(): boolean; } export const DocumentView: ComponentType; export const RNPdftron: RNPdftronInterface; export const PDFViewCtrl: any; export const Config: any; export const AnnotOptions: any; export const FakeDocumentView: ComponentType; export const FakeRNPdftron: RNPdftronInterface; export const FreePDFTronExample: ComponentType; export const FreeDocumentViewer: ComponentType; }