export interface SyntaxCheckResult { /** Parse errors in the new content (capped at {@link MAX_ERRORS}). */ errors: string[]; /** True when the pre-edit content already failed to parse — the edit did * not introduce the breakage (though it didn't fix it either). */ preExisting: boolean; } /** * Check `content` for syntax errors based on the file extension. * Returns `undefined` when the file type is not checkable (or the checker * is unavailable) and a result with an empty `errors` array when clean. * Pass `previousContent` to distinguish newly-introduced errors from * pre-existing ones. */ export declare function checkSyntax(filePath: string, content: string, previousContent?: string): Promise; //# sourceMappingURL=_syntax-check.d.ts.map