import * as LSP from 'vscode-languageserver/node'; import { TextDocument, TextEdit } from 'vscode-languageserver-textdocument'; type FormatterOptions = { executablePath: string; cwd?: string; }; export declare class Formatter { private cwd; executablePath: string; private _canFormat; constructor({ cwd, executablePath }: FormatterOptions); get canFormat(): boolean; format(document: TextDocument, formatOptions?: LSP.FormattingOptions | null, shfmtConfig?: Record | null): Promise; private executeFormat; private runShfmt; } export {};