import { type Logger } from "ts-log"; /** * @public */ export interface IPathMapper { /** * Path prefix to match (relative to cwd). */ match: string; /** * Value to replace matched portion of path with. */ replace: string; } /** * A file path mapping. */ export interface IMappedPath { /** * File's true path. */ actual: string; /** * File's virtual path. */ virtual: string; } interface IResolverOptions { /** * Virtual path mappings. */ virtPathMaps: IPathMapper[]; /** * Current working directory. */ cwd: string; /** * Logger. */ logger: Logger; } /** * Creates a list of file paths with overrides applied according to specified virtual path mappings. * * @param globs Glob patterns to locate files with. * @param options Additional options for file resolution. * * @returns Map of virtual paths to actual paths, all fully resolved to absolute paths. */ export default function (globs: string[], options: IResolverOptions): IMappedPath[]; export {};