import type { Node as SyntaxNode } from 'web-tree-sitter'; import type { LanguageExtractor } from '../tree-sitter-types'; /** * If `callNode` is a `require(...)` call, return the module name; otherwise null. * Lua/Luau have no import statement — modules are loaded by calling the global * `require`. Handles both: * - string requires: `require("net.http")` / `require "net.http"` → "net.http" * - Roblox/Luau path requires: `require(script.Parent.Signal)` → "Signal" * (the dominant idiom in Roblox code, where the argument is an instance path * rather than a string — use the trailing field as the module name). */ export declare function requireModule(callNode: SyntaxNode, source: string): string | null; export declare const luaExtractor: LanguageExtractor; //# sourceMappingURL=lua.d.ts.map