import { stringify } from "yaml";
import type { Config } from "../types";
import type { BaseHookContext } from "../types/hooks";
type WriteFileOptions = {
  commentChar: string;
};
type StringifyOptions = Exclude<Parameters<typeof stringify>[2], null | undefined | string | number>;
export declare const yamlStringifyOptions: StringifyOptions;
export declare class FileWriter {
  private readonly config;
  static create(config: Config): FileWriter;
  constructor(config: Config);
  protected writeTheFile(path: string, content: string): Promise<void>;
  protected getBaseHookContext(path: string): Promise<BaseHookContext>;
  writeGeneratedFile(path: string, content: string, options: WriteFileOptions): Promise<void>;
  writeYamlfile(path: string, data: any): Promise<void>;
  protected getAutoGeneratedHeader(commentChar: string): string;
}
export {};