diff --git a/packages/discovery-react-components/src/components/DocumentPreview/components/PdfViewer/typings.d.ts b/packages/discovery-react-components/src/components/DocumentPreview/components/PdfViewer/typings.d.ts deleted file mode 100644 index 3ea97bed..00000000 --- a/packages/discovery-react-components/src/components/DocumentPreview/components/PdfViewer/typings.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -// declare module 'pdfjs-dist/build/pdf.worker.min.mjs'; - -// declare module 'pdfjs-dist/build/pdf.mjs' { -// export class TextLayer { -// constructor({ textContentSource: TextContent, container: any, viewport: PageViewport }); -// render(): Promise; -// textDivs: HTMLElement[]; -// } -// } - -// // -// // Declare modules and their types that is referred from PDF text layer rendering. -// // Unused properties are commented out -// // -// declare module 'pdfjs-dist/lib/web/ui_utils' { -// export class EventBus { -// on(eventName: string, listener: any): void; -// off(eventName: string, listener: any): void; -// dispatch(eventName: string, args?: any): void; -// } -// // export function getGlobalEventBus(): EventBus; -// } - -// declare module 'pdfjs-dist/lib/web/text_layer_builder' { -// import { EventBus } from 'pdfjs-dist/lib/web/ui_utils'; -// import { PageViewport } from 'pdfjs-dist/types/src/display/display_utils'; -// import { TextContent } from 'pdfjs-dist/types/src/display/api'; - -// export class TextLayerBuilder { -// constructor(options: TextLayerBuilder.Options); - -// textLayerDiv: HTMLElement; -// eventBus: EventBus; -// textContent: TextContent | null; -// // textContentItemsStr: any[]; -// renderingDone: boolean; -// // pageIdx: number; -// pageNumber: number; -// // matches: any[]; -// // viewport: PageViewport; -// textDivs: HTMLElement[]; -// // findController: any; -// textLayerRenderTask: TextLayerRenderTask; -// // enhanceTextSelection: any; - -// render(timeout?: number): void; -// cancel(): void; -// // setTextContentStream(readableStream: any): void; -// setTextContent(textContent: TextContent): void; -// } -// export const DefaultTextLayerFactory; - -// declare namespace TextLayerBuilder { -// export interface Options { -// textLayerDiv: HTMLElement; -// eventBus: EventBus; -// pageIndex: number; -// viewport: PageViewport; -// // findController?: any; -// // enhanceTextSelection?: any; -// } -// } -// }