export interface IFileOptions { cwd?: string; /** Restricts file building based on provided `state` option */ strict?: boolean; /** Expected state of the file (works only on `strict` option provided as `true`) */ state?: 'new' | 'existent'; } export declare class FileReplaceError extends Error { source: string; constructor(source: string, reason: string); } export declare class FileBuildError extends Error { constructor(reason: string); } export declare class File { private provided; path: string; dir: string; cwd: string; content: string; lang: string; options?: IFileOptions; constructor(provided: Pick); append(content: string): this; prepend(content: string): this; replace(source: string, target: string, options?: Pick): this; /** Writes content to file */ write(content?: string): Promise; /** Refreshes and stores source content from file */ refresh(): Promise; remove(): Promise; static build(location: string | string[], options?: IFileOptions): Promise; } //# sourceMappingURL=file.d.ts.map