import { extractPages, ExtractPagesParamsType } from "./functions/extractPages"; import { impose, ImposeParamsBaseType, ImposeParamsType } from "./functions/impose"; import { mergePDFs, MergeParamsType } from './functions/mergePDFs'; import { removeBlankPages, RemoveBlankPagesParamsType } from "./functions/removeBlankPages"; import { rotatePages, RotateParamsType } from './functions/rotatePages'; import { scaleContent, ScaleContentParamsType} from './functions/scaleContent'; import { scalePage, ScalePageParamsType } from './functions/scalePage'; import { sortPagesWithPreset, SortPagesWithPresetParamsType } from './functions/sortPagesWithPreset' import { splitOn, SplitOnParamsType } from './functions/splitOn'; import { splitPDF, SplitPdfParamsType } from './functions/splitPDF'; import { updateMetadata, UpdateMetadataParams } from "./functions/updateMetadata"; import { PdfFile } from "./wrappers/PdfFile"; import { Override } from '../declarations/TypeScriptUtils' // Import injected libraries here! const toExport = { extractPages, impose, mergePDFs, removeBlankPages, rotatePages, scaleContent, scalePage, sortPagesWithPreset, splitOn, splitPDF, updateMetadata, } export default toExport; export type OperationsParametersBaseType = { extractPages: ExtractPagesParamsType; impose: ImposeParamsBaseType; mergePDFs: MergeParamsType; removeBlankPages: RemoveBlankPagesParamsType; rotatePages: RotateParamsType; scaleContent: ScaleContentParamsType; scalePage: ScalePageParamsType; sortPagesWithPreset: SortPagesWithPresetParamsType; splitOn: SplitOnParamsType; splitPDF: SplitPdfParamsType; updateMetadata: UpdateMetadataParams; } export type OperationsBaseType = typeof toExport; // Overide fields in the type of toExport, with the given fields and types. This seems to magically work! export type OperationsType = Override Promise; }>; export type OperationsParametersType = Override;