import type { RemoteDatasourceDefinition } from "./remote-datasources/remote-datasource-registry"; export type TemplateSuggestion = { /** Full token to insert, e.g. `{{ source.field }}` */ insert: string; /** Short label for the list */ label: string; /** Secondary line (field description) */ description?: string; }; /** * If the caret is inside an unclosed `{{ … }}` segment, returns the index of the first `{` * and the inner text after `{{` (trimmed for matching; whitespace is allowed in the document). */ export declare function getActiveRemoteDatasourceInterpolation(value: string, cursor: number): { openIdx: number; query: string; } | null; /** * Suggest `{{ source.path }}` templates from the datasource registry, filtered by the partial path after `{{`. */ export declare function remoteDatasourceTemplateSuggestions(query: string, registry?: RemoteDatasourceDefinition[]): TemplateSuggestion[];