import { Configuration } from './Configuration.js'; export declare class Manifest extends Array { constructor(toimport: any); /** * Finds a {@link ManifestItem} * * @param id The ID code for a {@link ManifestItem} * @returns The matching {@link ManifestItem} */ byID(id: string): ManifestItem; /** * Finds a {@link ManifestItem} * * @param path2find The file name for a {@link ManifestItem} * @returns The matching {@link ManifestItem} */ byPath(path2find: string): ManifestItem; /** * Returns an array of {@link ManifestItem} items that are in the _spine_ * * @returns Array of matching items */ get spine(): ManifestItem[]; /** * Either updates a {@link ManifestItem} or adds a new one to the {@link Manifest}. * If the item already exists, it is updated, and otherwise it is * added. * * @param newItem The new {@link ManifestItem} to add or update */ addItem(newItem: ManifestItem): void; /** * Adds an array of items to the {@link Manifest} * * @param items Array of {@link ManifestItem} items */ addItems(items: ManifestItem[]): void; /** * First removes all existing {@link ManifestItem} objects from manifest, * then adds the new ones. * * @param newItems Array of {@link ManifestItem} objects */ replaceItems(newItems: ManifestItem[]): void; /** * Remove a {@link ManifestItem} from the {@link Manifest}. * * @param path2remove The path of the item to remove. */ remove(path2remove: string): void; } export declare class ManifestItem { constructor(item: any); id: string; basedir: string; path: string; dirname: string; filename: string; mime: string; mimeoverride: string; nav_id: string; nav_path: string; is_nav: boolean; properties: string; cover_id: string; cover_path: string; is_cover_image: boolean; is_mathml: boolean; is_scripted: boolean; is_svg: boolean; is_remote_resources: boolean; is_switch: boolean; suppressOPF: boolean; suppress: boolean; in_spine: boolean; spine_order: number; linear: boolean; seen_in_opf: boolean; } /** * Returns an array of {@link ManifestItem} items that are in the _spine_ * * @param epubConfig The {@link Configuration} object * @returns An array of {@link ManifestItem} objects that are in the spine */ export declare function spineItems(epubConfig: Configuration): ManifestItem[]; /** * For {@link ManifestItem} objects that are in the spine, read the title * from the matching XHTML file, adding it as the _title_ field. * * @param epubConfig The {@link Configuration} object */ export declare function spineTitles(epubConfig: Configuration): Promise; export declare function tocData(epubConfig: Configuration): Promise; /** * Scans the file system, constructing {@link ManifestItem} items for each, * and ultimately constructing a {@link Manifest} object. * * @param config The {@link Configuration} object * @returns Returns a {@link Manifest} object */ export declare function from_fs(config: Configuration): Promise; //# sourceMappingURL=manifest.d.ts.map