ai-pp3
Version:
CLI tool combining multimodal AI analysis with RawTherapee's engine to generate optimized PP3 profiles for RAW photography
29 lines (28 loc) • 1.35 kB
TypeScript
export interface SectionResult {
sections: string[];
sectionOrders: string[];
}
export interface SectionWithFilter extends SectionResult {
includedSections: string[];
excludedSections: string[];
}
/**
* Base function to split content into sections based on section headers in square brackets
* @param content - The content to split into sections
* @param processSection - Optional callback to process each section as it's found
* @returns Object containing sections and their order
*/
export declare function splitContentBySections(content: string, processSection?: (section: string, sectionName: string, index: number) => void): SectionResult;
/**
* Splits PP3 content into sections and categorizes them based on provided section names
* @param content - The PP3 file content as a string
* @param sectionNames - Array of section names to include
* @returns Object containing included sections, excluded sections, and section order
*/
export declare function splitPP3ContentBySections(content: string, sectionNames: string[]): SectionWithFilter;
/**
* Splits content into sections based on section headers in square brackets
* @param content - The content to split into sections
* @returns Object containing sections and their order
*/
export declare function splitContentIntoSections(content: string): SectionResult;