/// import * as fs from 'fs'; import { PrintContext } from '../interfaces'; /** * Should only be used in site mode. * * @param p target file path * @param ctx */ export declare function urlFor(p: string, ctx: { baseDir: fs.PathLike; rootDir: fs.PathLike; }): string; export declare function isJSONString(text: string): boolean; export declare function isFile(filePath: fs.PathLike): boolean; export declare function jsonlintErrCatch(input: string): any; /** * Learned from * https://github.com/hexojs/hexo/commit/2ad42b3501554ce48401c09ee3b4158d4b6e38f7#diff-5b9787c2de58e4aa04138e83d461159eL20 * * @param file */ export declare function extName(file: string): string; declare namespace PrintContextGenerator { /** * string of "A4 portrait" --> { width: xx, height: xx } * * @export * @param {string} pagesize_opt * @returns * @throws {MandocCommandOptionError} */ function fromPagesizeOpt(pagesize_opt: string): PrintContext; } export declare const generatePrintContext: typeof PrintContextGenerator.fromPagesizeOpt; export {};