import { NativeModules } from 'react-native'; export type PageDim = { height: number; width: number }; type PdfUtilType = { /** * Get the number of pages of a pdf. */ getPageCount(source: string): Promise; /** * Get the dimensions of every page. */ getPageSizes(source: string): Promise; /** * Get base 64 image for a page. */ getBase64Image(source: string, page: number): Promise; /** * Get the isLocked of a pdf. */ isLocked(source: string): Promise; }; /** * Utility pdf actions. */ export const PdfUtil: PdfUtilType = NativeModules.RNPdfUtil;