import type { EditFileCallback } from '../api.ts';
export type PropertiesFileKeyUpdate = {
    key: string;
    value: string | ((oldValue?: string) => string);
    valueSep?: string;
    /** Only supported if sortFile is set to false, and at key creation */
    comment?: string;
};
export type PropertiesFileLines = (string | [string, string])[];
export type PropertiesFileValueCallback = (newValue: PropertiesFileKeyUpdate['value'], oldValue?: string, sep?: string) => string;
/**
 * Edit a property file, adding or updating a key.
 */
export declare const editPropertiesFileCallback: (properties: PropertiesFileKeyUpdate[] | ((lines: PropertiesFileLines, newValueCallback: PropertiesFileValueCallback) => PropertiesFileLines), options?: {
    sortFile?: boolean;
}) => EditFileCallback;
