import { SsgContext, SsgStep } from "ssg-api"; import { SearchVisitor } from "./SearchVisitor.js"; import { HtmlRR0Context } from "../RR0Context.js"; /** * Saves the index file collected by the SearchCommand. */ export declare class SearchIndexStep implements SsgStep { protected fileName: string; protected searchCommand: SearchVisitor; protected contentRoot?: string; protected prepareContext?: (context: HtmlRR0Context, fileName: string) => void; protected encoding: BufferEncoding; /** * @param fileName The index file path * @param searchCommand The command that collected the pages info. */ constructor(fileName: string, searchCommand: SearchVisitor, contentRoot?: string, prepareContext?: (context: HtmlRR0Context, fileName: string) => void); /** * Write the search index file. * * @param context */ execute(context: SsgContext): Promise; protected decodeTitle(title: string): string; protected readSourceTitle(sourceFile: string): string; }