export declare const FOLDER_MANIFEST_FILE = "liv-doc-main.md"; export interface FolderManifest { order: string[]; hidden: string[]; } export declare function readFolderManifest(absDir: string): FolderManifest; /** * Applies a manifest `order` to already default-sorted entries: listed entries * first (manifest order, unknown names ignored), then the others unchanged. */ export declare function applyManifestOrder(entries: T[], order: string[]): T[]; /** Writes an empty manifest in a new folder; an existing manifest is kept. */ export declare function createFolderManifest(absDir: string): void; /** * Appends `name` to the parent manifest `order` when that order is non-empty; * an empty order already shows new entries in default order. Other fields and * the body are kept. */ export declare function appendToManifestOrder(absDir: string, name: string): void; /** * Adds `name` to (or removes it from) the manifest `hidden` of `absDir`, * creating the manifest when missing. Returns false, writing nothing, when the * existing manifest has no valid YAML frontmatter. */ export declare function setManifestHidden(absDir: string, name: string, hidden: boolean): boolean; /** True when `absDir` has no manifest yet or one with a valid YAML frontmatter. */ export declare function isManifestWritable(absDir: string): boolean; /** * Replaces the manifest `order` of `absDir` (created when missing) and purges * `hidden` names that no longer exist on disk. */ export declare function setManifestOrder(absDir: string, order: string[]): void; /** Removes `name` from the `order` and `hidden` of an existing manifest. */ export declare function removeFromManifest(absDir: string, name: string): void; /** Replaces `from` by `to` in the `order` and `hidden` of an existing manifest, keeping positions. */ export declare function renameInManifest(absDir: string, from: string, to: string): void; //# sourceMappingURL=folderManifest.d.ts.map