UNPKG

@netlify/content-engine

Version:
25 lines 780 B
import { LedgerAction } from "./ledger-writer"; type HandleAction = (action: LedgerAction) => void; export type ReadLedgerArgs = { cacheId: string; configurationId: string; endBlockVersionId?: string; headers?: Record<string, string>; onAction?: (action: LedgerAction) => void; }; export declare class LedgerReader { private resourceId; private serverUrl; private handleAction?; private cache; constructor(input: { resourceId: string; directory: string; serverUrl: string; handleAction?: HandleAction; }); read({ cacheId, endBlockVersionId, headers, configurationId, onAction, }: ReadLedgerArgs): Promise<number>; private createReadStream; } export {}; //# sourceMappingURL=ledger-reader.d.ts.map