world/book/node_modules/honkit/lib/api/encodePage.d.ts
2025-05-12 05:38:44 +09:00

16 lines
563 B
TypeScript

import Output from "../models/output";
import Page from "../models/page";
import { EncodedPage } from "../json/encodePage";
type PageAttributes = {
type: string;
path: string;
rawPath: string;
};
export type EncodedPageWithAttributes = EncodedPage & PageAttributes;
export type PartialEncodedPageWithAttributes = EncodedPage & Partial<PageAttributes>;
/**
Encode a page in a context to a JS API
*/
declare function encodePage(output: Output, page: Page): EncodedPageWithAttributes;
export default encodePage;
//# sourceMappingURL=encodePage.d.ts.map