ai-pp3
Version:
CLI tool combining multimodal AI analysis with RawTherapee's engine to generate optimized PP3 profiles for RAW photography
34 lines (33 loc) • 1.2 kB
TypeScript
/**
* Finds the section boundaries in content
*/
export declare function findSectionBoundaries(contentLines: string[], sectionHeader: string): {
startIndex: number;
endIndex: number;
} | null;
/**
* Extracts parameter lines from search/replace patterns
*/
export declare function extractParameters(lines: string[]): string[];
/**
* Creates a map of parameter names to replacement values
*/
export declare function createReplacementMap(searchParameters: string[], replaceParameters: string[]): Map<string, string>;
/**
* Applies replacements within a section
*/
export declare function applyReplacementsInSection(contentLines: string[], boundaries: {
startIndex: number;
endIndex: number;
}, replaceMap: Map<string, string>, verbose: boolean): string[];
/**
* Applies fuzzy search/replace that supports line skipping within sections
*/
export declare function applyFuzzySearchReplace(content: string, search: string, replace: string, verbose: boolean): string;
/**
* Applies search/replace blocks to content
*/
export declare function applySearchReplaceBlocks(content: string, searchReplaceBlocks: {
search: string;
replace: string;
}[], verbose: boolean): string;