import { Diagnostic } from "vscode-languageserver"; import type { TextDocument } from "vscode-languageserver-textdocument"; import { type FileType } from "../common/src/fileTypes.js"; import { type OffsetRange } from "./json/positions.js"; /** Find the fileType whose extensions match this URI, or null. */ export declare function fileTypeForUri(uri: string): FileType | null; /** A raw inline statement: its parsed payload and the payload's source span. */ interface InlineStatement { payload: any; /** Whether parseObject could turn the captured text into an object. */ parsed: boolean; range: OffsetRange; } export declare function collectMatchOffsets(text: string, patterns?: string[]): number[]; /** Extract statements of one kind (testStart / step) with payloads + spans. */ export declare function extractStatements(text: string, patterns: string[] | undefined, ignore: OffsetRange[]): InlineStatement[]; /** * Compute diagnostics for inline Doc Detective test statements embedded in a * markup document (markdown/asciidoc/html/dita, or a config fileType). Only the * `test` open and `step` statement regions the runner recognizes get language * features — the rest of the prose is left alone. */ export declare function computeInlineDiagnostics(doc: TextDocument, fileType: FileType): Diagnostic[]; export {}; //# sourceMappingURL=inline.d.ts.map