/** * Shortens a fully resolved filename to a short path that would be respected by * `require`. * @example * '/long/absolute/path/to/node_modules/package/lib/file.js' => 'package/lib/file' * * @param {{ * name: string; * packageDir: string; * file: string; * main?: string; * }} opts * @returns {string} */ export function getShortname({ name, packageDir, file, main }: { name: string; packageDir: string; file: string; main?: string; }): string; //# sourceMappingURL=helpers.d.ts.map