import type { LintResult, ValidationIssue } from '@opentask/taskin-task-manager'; import { type MetadataStyleId } from './metadata-style/index.js'; /** * How `fixTaskFile` should mark the metadata block it writes. * * @public */ export interface FixTaskFileOptions { /** Style for a file that has no block to detect one from. */ readonly metadataStyle?: MetadataStyleId; /** * When set, the block is rewritten in this style whatever the file used. * Unset, the file keeps its own style and is only normalized within it. */ readonly convertTo?: MetadataStyleId; } /** * Migrates section-based metadata to the inline block, then normalizes the * block's marking. * * Normalizing used to mean "make sure every line ends with a backslash", which * put the break back on the last line — the very thing that renders as a stray * `\`. It now means "re-emit the block in one style", and which style is * decided by the file itself unless {@link FixTaskFileOptions.convertTo} says * otherwise. */ export declare function fixTaskFile(filePath: string, options?: FixTaskFileOptions): Promise; /** * Validates the format and content of a task markdown file */ export declare function validateTaskFile(filePath: string): Promise; /** * Aggregates validation issues into a LintResult */ export declare function createLintResult(allIssues: ValidationIssue[]): LintResult; //# sourceMappingURL=task-validator.d.ts.map