import { Extension } from '@codemirror/state';
import { JsonSchema } from '../../../lib/json-schema';
/**
 * Creates a CodeMirror autocomplete extension for {{variable}} placeholders.
 * Triggers when the user types `{{` and shows suggestions derived from the schema.
 *
 * @param schema - JSON Schema to derive variable suggestions from
 * @returns CodeMirror Extension that provides variable autocomplete
 *
 * @example
 * ```tsx
 * const schema = {
 *   type: 'object',
 *   properties: {
 *     user: { type: 'object', properties: { name: { type: 'string' } } }
 *   }
 * };
 *
 * <CodeMirror extensions={[createVariableAutocomplete(schema)]} />
 * // Typing "{{" will show: user, user.name
 * ```
 */
export declare function createVariableAutocomplete(schema: JsonSchema | undefined): Extension;
