UNPKG

@alynva/outline-pdf-cjs

Version:

Add outline to outline-less pdf. Works in node and does not have any dependency on other programming languages.

15 lines (14 loc) 477 B
/// <reference types="node" /> import type { access as _access } from "fs/promises"; /** * @description It returns a rejected promise if the provided path corresponds to a file or directory, * otherwise it returns a void fulfilled promise. */ export declare function rejectIfPathExistsFactory(fs: { promises: { access: typeof _access; }; }): (path: string) => Promise<void>; export declare const _errorMessages: { pathExist: (path: string) => string; };