import type { CellOutput, KnownCellOutputMimeTypes, OutputSummaryEntry } from '@curvenote/blocks'; import { OutputSummaryKind } from '@curvenote/blocks'; import type { IFileObjectFactoryFn } from '../../files'; import type { SummarizerOptions } from './types'; declare class Summarizer { fileFactory: IFileObjectFactoryFn; item: CellOutput; basepath: string; options: SummarizerOptions; constructor(fileFactory: IFileObjectFactoryFn, item: CellOutput, basepath: string, options?: SummarizerOptions); test(outputItem: CellOutput): boolean; static new(fileFactory: IFileObjectFactoryFn, kind: OutputSummaryKind, item: CellOutput, basepath: string, options?: SummarizerOptions): Summarizer | null; kind(): OutputSummaryKind; $makeFilepath(contentType: KnownCellOutputMimeTypes): string; /** * Returns a modified version of the cell otuput containing the reamining data for processing * if any or null */ next(): CellOutput; prepare(): OutputSummaryEntry; process(summary: OutputSummaryEntry): Promise; } export default Summarizer;