import type { CompletionContext, CompletionSource } from "@codemirror/autocomplete"; import type { EditorState } from "@codemirror/state"; /** @internal */ export interface IYamlPosition { /** Keys of the mappings enclosing the position, outermost first. */ ancestorKeys: string[]; /** Block-scalar (`|`, `>`) text, whose content is not YAML structure. */ isInBlockScalar: boolean; } /** @internal */ export type YamlCompletionSource = (context: CompletionContext, position: IYamlPosition) => ReturnType; /** @internal */ export declare function yamlPositionAt(state: EditorState, pos: number): IYamlPosition; //# sourceMappingURL=yamlPosition.d.ts.map