/** * Template Variable Autocomplete Extension for CodeMirror * Provides autocomplete suggestions for {{ variable }} syntax in template editors. * * Features: * - Triggers on `{{` to show top-level variables * - Triggers on `.` to show child properties for objects * - Triggers on `[` to show array index options * - Supports deep nesting (e.g., `user.address.city`) * * @module components/form/templateAutocomplete */ import type { Extension } from '@codemirror/state'; import type { VariableSchema } from '../../types/index.js'; /** * Creates a CodeMirror extension for template variable autocomplete. * * @param schema - The variable schema containing available variables * @returns A CodeMirror extension that provides autocomplete * * @example * ```typescript * const extensions = [ * // ... other extensions * createTemplateAutocomplete(variableSchema) * ]; * ``` */ export declare function createTemplateAutocomplete(schema: VariableSchema): Extension;