import origFs from "fs/promises"; type FileSystem = Pick; type SizeOptions = { width?: number; height?: number; fit?: "cover" | "contain" | "fill" | "inside" | "outside"; position?: "top" | "right top" | "right" | "right bottom" | "bottom" | "left bottom" | "left" | "left top"; }; type SharpOperations = { resize(options: SizeOptions): SharpOperations; toBuffer(): Promise; }; export type SharpLib = (path: string) => SharpOperations; export declare function getPreviewFolder(options: SizeOptions): string; export declare function Files({ sharp, fs }?: { sharp?: SharpLib; fs?: FileSystem; }): { mkdirp: (path: string) => Promise; getProjectDir: (envName: string, ...path: string[]) => Promise; getDataUrl: (mimetype: string, data: Buffer) => string; getPreview: (folder: string, name: string, mimetype: string, options: SizeOptions) => Promise; readJSON: (fileWithPath: string) => Promise; readYAML: (fileWithPath: string) => Promise; /** * Read YAML configuration file. * * @param fileWithPath Path and name of configuration file in YAML format * @param withoutSecrets deletes a possibly existing `secrets` entry, defaults to true * @returns */ readConfig: (fileWithPath: string, withoutSecrets?: boolean) => Promise; }; export {};