export declare const MAX_READ_LINE_OUTPUT = 250;
export type FileFormat = 'yaml' | 'json';
export type ArtifactsFile = {
    filename: string;
    description: string;
};
export declare function removeEndingSlash(dirPath: string): string;
export declare function resolvePath(filePath: string): string;
export declare function isFile(filepath: string): boolean;
export declare function readFileAtPath(filepath: string): string;
export declare function writeFileAtPath(filepath: string, value: string): void;
export declare function readJson<T>(filepath: string): T;
export declare function tryReadJson<T>(filepath: string): T | null;
export declare function writeJson(filepath: string, obj: any): void;
export declare function mergeJson<T extends Record<string, any>>(filepath: string, obj: T): void;
export declare function readYaml<T>(filepath: string): T;
export declare function tryReadYamlAtPath<T>(filepath: string): T | null;
export declare function writeYaml(filepath: string, obj: any): void;
export declare function mergeYaml<T extends Record<string, any>>(filepath: string, obj: T): void;
export declare function readYamlOrJson<T>(filepath: string, format?: FileFormat): T;
export declare function writeYamlOrJson(filepath: string, obj: Record<string, any>, format?: FileFormat): any;
export declare function mergeYamlOrJson(filepath: string, obj: Record<string, any>, format?: FileFormat): any;
export declare function resolveFileFormat(filepath?: string, format?: FileFormat): FileFormat | undefined;
export declare function runFileSelectionStep(folderPath: string, description: string, pattern?: string): Promise<string>;
export declare function indentYamlOrJson(str: string, indentLevel: number): string;
/**
 * Logs the YAML representation of an object if the number of lines is less than the specified maximum.
 *
 * @param obj - The object to be converted to YAML.
 * @param maxLines - The maximum number of lines allowed for the YAML representation.
 * @param margin - The number of spaces to use for indentation (default is 2).
 */
export declare function logYamlIfUnderMaxLines(obj: any, maxLines?: number, margin?: number): void;
//# sourceMappingURL=files.d.ts.map