/// import { Readable } from "stream"; import { type IPathMapper } from "./resolver.js"; import { type Logger } from "ts-log"; /** * @public */ export interface IConfig { /** * Input file matchers. */ globs: string | string[]; /** * Virtual path mappings. Collision resolution uses the last mapping to select the file. * Internally mapping occurs on absolute path strings, conversion and normalization is * performed automatically. Resolution is *not* recursive. */ pathMappings: IPathMapper[]; /** * Current working directory. * Default: process.cwd() */ cwd?: string; /** * Optional logger. Use this to debug issues and trace behaviors. * Adheres to interface defined in ts-log package. */ logger?: Logger; /** * Specifies the folder relative to the cwd * This is used to determine the file names when saving in .dest() * Default: cwd */ base?: string; } /** * Vinyl source that maps input files with virtual paths. * Files are overridden on collision. * @param config - Source configuration. * * @public */ export declare function src(config: IConfig): Readable;