import { TextDocument } from 'vscode-languageserver'; import { HTMLDocument } from 'vscode-html-languageservice'; import { Position, Location } from 'vscode-languageserver-types'; export declare const getAuraStandardResourcePath: () => string; export declare const getAuraSystemResourcePath: () => string; export declare const parse: (input: string) => HTMLDocument; /** * Looks for property bindings {PROPERTY.something} within attribute values, or body content, and returns a location * within the same template that corresponds to iterator:PROPERTY or for:item="PROPERTY". */ export declare const getAuraBindingTemplateDeclaration: (document: TextDocument, position: Position, htmlDocument: HTMLDocument) => Location | null; /** * Extracts the Aura binding value at the given position in an HTML document. * * This function looks for Aura expressions like {!v.property} or {!c.method} * and returns the property/method name if the cursor is positioned within it. * Examples: * - Attribute: "
" → returns "account" * - Attribute: "" → returns "account" (cursor within property) * - Attribute: "" → returns "account" (first property only) * - Attribute: "" → returns "property" * - Attribute: "" → returns "property" (cursor within property) * - Attribute: "" → returns null * - Content: "Hello {!v.account|.Name} world" → returns "account" * - Content: "Hello {!v.accou|nt.Name} world" → returns "account" (cursor within property) * - Content: "Hello {!v.account.Name|} world" → returns "account" (first property only) * - Content: "Hello {!v.property|} world" → returns "property" * - Content: "Hello {!v.pr|operty} world" → returns "property" (cursor within property) * - Content: "Hello {!v|.property} world" → returns null * * @param document - The text document containing the Aura markup * @param position - The cursor position to check * @param htmlDocument - The parsed HTML document * @returns The property/method name from the Aura expression, or null if not found */ export declare const getAuraBindingValue: (document: TextDocument, position: Position, htmlDocument: HTMLDocument) => string | null; //# sourceMappingURL=aura-utils.d.ts.map