import { type Ref } from 'vue';
import type { CanvasLoadedCallback, PreparePrintProgress, ViewerPdfPage } from '@/utils/types';
import { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
declare const usePrintControl: (pdfDocument: Ref<PDFDocumentProxy | undefined>, pages: Ref<ViewerPdfPage[]>, afterCanvasLoaded?: Ref<Record<number, CanvasLoadedCallback> | undefined>) => {
    print: (showProgress?: boolean) => Promise<void>;
    printControl: {
        print: (options?: {
            visibleDefaultProgress: boolean;
        } | undefined) => void;
        cancel: () => void;
        onProgress?: ((progress: PreparePrintProgress) => void) | undefined;
        onError?: ((error: Error) => void) | undefined;
        onComplete?: (() => void) | undefined;
    };
    visiblePrintProcess: Ref<boolean, boolean>;
    onPrintCancel: () => void;
    printProgressPercentage: Ref<number, number>;
};
export default usePrintControl;
