import { Expression } from '@cucumber/cucumber-expressions'; /** * A document that can be indexed. It's recommended to index the segments rather than the suggestion. * When indexing the segments, the nested arrays (representing choices) may be given lower weight * than the string segments (which represent the "sentence") */ export declare type StepDocument = { /** * The suggestion is what the user will see in the autocomplete. */ suggestion: string; /** * The segments are used to build the contents that will be inserted into the editor * after selecting a suggestion. * * For LSP compatible editors, this can be formatted to an LSP snippet with the * lspCompletionSnippet function. */ segments: StepSegments; /** * The Cucumber Expression or Regular Expression */ expression: Expression; }; export declare type StepSegments = readonly StepSegment[]; declare type Text = string; declare type Choices = readonly string[]; export declare type StepSegment = Text | Choices; export {}; //# sourceMappingURL=types.d.ts.map