import { PDFArray } from 'pdf-lib';
import type { OutlineNode } from '../../html-export-pdf/index.js';
export interface NormalizePage {
    location: string;
    pagePath: string;
    url: string;
    title?: string;
}
export type PDFOutline = [path: string, outlineNodes: OutlineNode[]];
export interface Outline {
    title: string;
    dest: PDFArray;
    children: Outline[];
}
/**
 * Based on @see https://github.com/Hopding/pdf-lib/issues/867#issuecomment-827570106
 */
export declare const replaceLinksWithOutline: (pdfData: Buffer | Uint8Array, pdfOutlines: PDFOutline[]) => Promise<Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>>;
/**
 * Merge PDFs.
 * @param pages - NormalizePage
 * @param outFile - Output file
 * @param outDir - Output directory
 * @returns relativePath - Output relative path
 */
export declare function mergePDF(pages: NormalizePage[], outFile: string, outDir: string, pdfOutlines: PDFOutline[]): Promise<string>;
