import { OutputPlugin } from '@mark-magic/core';
import { Toc } from '@mark-magic/epub';
import { EpubOutputConfig } from './config.schema';
export declare function sortChapter<T extends {
    path: string;
}>(chapters: T[]): T[];
export interface Sidebar extends Omit<Toc, 'children'> {
    /** 章节对应的内容路径，方便将其转换为 tree */
    path: string;
    children?: Sidebar[];
}
export declare function treeSidebarByPath<T extends Pick<Sidebar, 'path' | 'children'>>(sidebar: T[]): T[];
export declare function output(options: EpubOutputConfig): OutputPlugin;
//# sourceMappingURL=output.d.ts.map