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

25 lines
747 B
TypeScript

import { EncodedNavigation } from "./encodeNavigation";
import Output from "../models/output";
import Page from "../models/page";
export type EncodedChapters = Array<EncodedNavigation[string] & {
path: string;
done: boolean;
percent: number;
}>;
export type PartialEncodedChapterValue = EncodedNavigation[string] & Partial<{
path: string;
done: boolean;
percent: number;
}>;
export type EncodeProgress = {
prevPercent: number;
percent: number;
current: number;
chapters: EncodedChapters;
};
/**
page.progress is a deprecated property from GitBook v2
*/
declare function encodeProgress(output: Output, page: Page): EncodeProgress;
export default encodeProgress;
//# sourceMappingURL=encodeProgress.d.ts.map