import { CompletionItem, MarkupKind } from "vscode-languageserver"; import type { Position } from "vscode-languageserver"; import type { TextDocument } from "vscode-languageserver-textdocument"; type JsonPath = Array; /** * Cursor is at a step-object key position: `…/steps//`. * Offers action-key completions. */ export declare function isStepKeyContext(path: JsonPath): boolean; /** * Cursor is at a key position inside an action object: * `…/steps///`. Returns the action key, or null. */ export declare function actionFieldContext(path: JsonPath): string | null; /** A Markdown documentation payload, or undefined when there's no text. */ export declare function markdownDoc(text: string | undefined): { kind: MarkupKind; value: string; } | undefined; /** * Compute completions at a position. Phase 2: action-key completion inside a * `steps` element, and field-name completion inside a known action's object. * Spec documents only, JSON only, key positions only. */ export declare function computeCompletions(doc: TextDocument, position: Position): CompletionItem[]; export {}; //# sourceMappingURL=completion.d.ts.map