UNPKG

@netlify/content-engine

Version:
24 lines 872 B
import fs from "fs"; import type { NextFunction, Request, Response } from "express"; export declare const defaultLedgersRoot: string; export declare function makeFSLedgerWriteHandler({ rootDir }?: { rootDir?: string; }): (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>; export declare function makeFSLedgerReadHandler({ rootDir }?: { rootDir?: string; }): (req: Request, res: Response, next: NextFunction) => Promise<void>; export declare function getLedgerBlocks({ ledgerId, configurationId, cacheId, startBlockId, endBlockId, rootDir, }: { ledgerId: string; configurationId: string; cacheId: string; startBlockId?: string; endBlockId?: string; rootDir: string; }): { allFileNames: string[]; files: { name: string; readStream: fs.ReadStream; }[]; }; //# sourceMappingURL=fs.d.ts.map