/** * Signature help for Handlebars for Marketing Cloud Next (MCN) helpers. * * Active only when a document targets Marketing Cloud Next * (`targetPlatform: 'next'`). Unlike AMPscript/SSJS calls, Handlebars helpers * take whitespace-separated arguments inside a `{{ ... }}` mustache, a `{{# ...}}` * block, or a `( ... )` subexpression — so the active call context is resolved * by a small scope-aware tokenizer rather than `findFunctionContext`. */ import type { SignatureHelp } from '../types.js'; /** Resolved Handlebars helper call context at the cursor. */ interface HandlebarsCallContext { /** The helper name leading the innermost active expression scope. */ helperName: string; /** Zero-based index of the argument currently being typed. */ argIndex: number; } /** * Resolve the innermost Handlebars helper call context from the document text * up to the cursor. Returns null when the cursor is not inside an open `{{ }}` * expression, or when the leading helper name has not been typed yet. * @param textUpToCursor - Document text from start up to the cursor position. * @returns The active helper call context, or null. */ export declare function findHandlebarsCallContext(textUpToCursor: string): HandlebarsCallContext | null; /** * Return signature help for the Handlebars helper at the given call context. * @param context - The resolved helper call context. * @param context.helperName - Name of the helper being invoked. * @param context.argIndex - Zero-based index of the active argument. * @returns SignatureHelp object, or null when the helper is unknown or takes no * parameters. */ export declare function getHandlebarsSignatureHelp(context: { helperName: string; argIndex: number; }): SignatureHelp | null; export {}; //# sourceMappingURL=mcnHandlebars.d.ts.map