import type { Toc } from "../../../../core/toc";
import type { AssetInfo } from "../../../../core/markdown/types";
import type HTMLElement from 'node-html-parser/dist/nodes/html';
export declare const PDF_PAGE_FILENAME = "pdf-page.html";
export interface PreprocessPdfOptions {
    path: string;
    tocDir: string;
    title?: string;
}
export interface PdfPageResult {
    path: string;
    content: string;
    title?: string;
}
export interface PdfPageResult {
    path: string;
    content: string;
    title?: string;
}
export declare function getPdfUrl(tocDir: string, path: string): NormalizedPath;
export declare function getAnchorId(tocDir: string, path: string): string;
export declare function replacePdfLink(root: HTMLElement, entries: string[]): void;
export declare function replacePCNestedLinks(html: string): string;
export declare function rebaseImgSrc(root: HTMLElement, base: string): void;
export declare function isEntryHidden(toc: Toc, entryPath: NormalizedPath): boolean;
export declare function addMainTitle(root: HTMLElement, options: PreprocessPdfOptions): void;
export declare function tryFixFirstPageHeader(root: HTMLElement): void;
export declare function decreaseHeadingLevels(root: HTMLElement): void;
export declare function addPagePrefixToAnchors(root: HTMLElement, options: PreprocessPdfOptions): void;
export declare function joinPdfPageResults(pdfPageResults: PdfPageResult[], tocDir: NormalizedPath, pdfLinks: NormalizedPath[]): string;
export declare function removePdfHiddenElements(root: HTMLElement): void;
/**
 * Finds dependencies in CSS file by url() directives.
 *
 * @param cssContent - CSS file content
 * @param cssFilePath - CSS file path for proper relative path resolution
 * @returns Array of AssetInfo objects for found dependencies
 */
export declare function findCssDependencies(cssContent: string, cssFilePath: RelativePath): AssetInfo[];
export declare function prepareAnchorAttrs(node: HTMLElement, pathname: string, page: string): void;
