ai-pp3
Version:
CLI tool combining multimodal AI analysis with RawTherapee's engine to generate optimized PP3 profiles for RAW photography
30 lines (29 loc) • 1.4 kB
TypeScript
import { SectionChange } from "../pp3-parser.js";
/**
* Creates a map of section names to section content
*/
export declare function createSectionMap(sections: string[]): Map<string, string>;
/**
* Applies changes to sections in the section map
*/
export declare function applySectionChanges(sectionMap: Map<string, string>, sectionChanges: SectionChange[], verbose: boolean): void;
/**
* Applies parameter changes to a section
*/
export declare function applyParameterChanges(sectionContent: string, parameters: Map<string, string>, sectionName: string, verbose: boolean): string;
/**
* Reconstructs content from section map preserving original order
*/
export declare function reconstructContent(sectionOrders: string[], sectionMap: Map<string, string>): string;
/**
* Reconstructs PP3 content from various section arrays
*/
export declare function reconstructPP3Content(sectionOrders: string[], editedSections: string[], includedSections: string[], excludedSections: string[]): string;
/**
* Applies direct section changes to PP3 content
* @param content - The original PP3 content
* @param sectionChanges - Array of section changes to apply
* @param verbose - Whether to log verbose information
* @returns Updated PP3 content with changes applied
*/
export declare function applyDirectSectionChanges(content: string, sectionChanges: SectionChange[], verbose: boolean): string;