19 lines
515 B
TypeScript
19 lines
515 B
TypeScript
import Page from "../models/page";
|
|
import Summary from "../models/summary";
|
|
import SummaryArticle from "../models/summaryArticle";
|
|
export type EncodedPage = {
|
|
content: string;
|
|
dir: string;
|
|
} & Partial<{
|
|
title: string;
|
|
level: number;
|
|
depth: number;
|
|
next: SummaryArticle;
|
|
previous: SummaryArticle;
|
|
}>;
|
|
/**
|
|
Return a JSON representation of a page
|
|
*/
|
|
declare function encodePage(page: Page, summary: Summary): EncodedPage;
|
|
export default encodePage;
|
|
//# sourceMappingURL=encodePage.d.ts.map
|