import type { SourcemapNode } from './sourcemap-types.js'; /** * Builds a lookup index from a Rojo sourcemap tree so that dotted Roblox * instance paths (e.g. `ServerScriptService.maid.Shared.Maid.spec`) can be * resolved to repo-relative filesystem paths. */ export declare class SourcemapResolver { private readonly _index; private constructor(); /** * Build a resolver from a parsed sourcemap root node. * * @param root - The top-level sourcemap node (typically named after the project) * @param repoRoot - Absolute path to the repo root, used to convert absolute * `filePaths` entries to repo-relative paths * @param rootAlias - The Roblox service name that the root node maps to in * test output. Defaults to `"ServerScriptService"`. */ static fromSourcemap(root: SourcemapNode, repoRoot: string, rootAlias?: string): SourcemapResolver; /** * Resolve a Roblox instance path to a repo-relative filesystem path. * * Strips any trailing `:LINE` suffix before lookup. * * @returns The repo-relative path, or `undefined` if the instance path is * not in the sourcemap. */ resolve(instancePath: string): string | undefined; } //# sourceMappingURL=sourcemap-resolver.d.ts.map