export interface CompilationOptions { /** * EXPERIMENTAL! * Allows disable resolving of symlinks to the original path. * By default following is enabled. * @see https://github.com/timocov/dts-bundle-generator/issues/39 */ followSymlinks?: boolean; /** * Path to the tsconfig file that will be used for the compilation. */ preferredConfigPath?: string; } export interface OutputOptions { /** * Sort output nodes in ascendant order. */ sortNodes?: boolean; /** * Name of the UMD module. * If specified then `export as namespace ModuleName;` will be emitted. */ umdModuleName?: string; /** * Enables inlining of `declare global` statements contained in files which should be inlined (all local files and packages from inlined libraries). */ inlineDeclareGlobals?: boolean; /** * Enables inlining of `declare module` statements of the global modules * (e.g. `declare module 'external-module' {}`, but NOT `declare module './internal-module' {}`) * contained in files which should be inlined (all local files and packages from inlined libraries) */ inlineDeclareExternals?: boolean; } export interface LibrariesOptions { /** * Array of package names from node_modules to inline typings from. * Used types will be inlined into the output file. */ inlinedLibraries?: string[]; /** * Array of package names from node_modules to import typings from. * Used types will be imported using `import { First, Second } from 'library-name';`. * By default all libraries will be imported (except inlined libraries and libraries from @types). */ importedLibraries?: string[]; /** * Array of package names from @types to import typings from via the triple-slash reference directive. * By default all packages are allowed and will be used according to their usages. */ allowedTypesLibraries?: string[]; } export interface EntryPointConfig { /** * Path to input file. */ filePath: string; libraries?: LibrariesOptions; /** * Fail if generated dts contains class declaration. */ failOnClass?: boolean; output?: OutputOptions; } export declare function generateDtsBundle(entries: ReadonlyArray, options?: CompilationOptions): string[]; export {};