import type { CellType, CodeCellType, PackageJsonCellType, SrcbookMetadataType } from '@srcbook/shared'; export declare function writeToDisk(srcbookDir: string, metadata: SrcbookMetadataType, cells: CellType[]): Promise; export declare function writeCellToDisk(srcbookDir: string, metadata: SrcbookMetadataType, cells: CellType[], cell: PackageJsonCellType | CodeCellType): Promise<[void, void]>; export declare function moveCodeCellOnDisk(srcbookDir: string, metadata: SrcbookMetadataType, cells: CellType[], cell: CodeCellType, oldFilename: string): Promise<[void, void, void]>; export declare function writeReadmeToDisk(srcbookDir: string, metadata: SrcbookMetadataType, cells: CellType[]): Promise; /** * Creates a srcbook directory from a .srcmd file. */ export declare function importSrcbookFromSrcmdFile(srcmdPath: string): Promise; /** * Creates a srcbook directory from a srcmd text. */ export declare function importSrcbookFromSrcmdText(text: string, directoryBasename?: string): Promise; /** * Creates a new srcbook. * Each Srcbook has a directory in ~/.srcbook/ refered to as its private directory. * This private directory has a randomid() private identifier. * Users are not supposed to be aware or modify private directories. */ export declare function createSrcbook(title: string, metadata: SrcbookMetadataType): Promise; export declare function fullSrcbookDir(dirId: string): string; export declare function removeSrcbook(srcbookDir: string): Promise; //# sourceMappingURL=srcbook.d.mts.map