import type { ReplaceTuples } from "./replace.js"; import type { TransformMode } from "./transforms/mode.js"; export type ExportItem = { /** * The name of the export, may be transformed by the mode and replaced by the replace tuples */ name: string; /** * The export's path, relative to the containing directory, sans the file extension */ path: string; /** * The export's source directory */ srcDir: string; }; type Options = { /** * The input directory to gather file paths from. */ input: string; /** * The mode to transform filepath segments. */ mode: TransformMode; /** * An optional list of replace tuples to rename export names. */ replace?: ReplaceTuples; }; /** * Given a list of file paths and options, return a list of export items. * * When building the name, the order of operations is: * 1. Take the file path and remove the extension * 2. Replace the name with the replace tuples * 3. Transform the name based on the mode */ declare function makeExportItems(filepaths: Array, options: Options): Array; export { makeExportItems, };