declare module "polyfill-library" { import {Readable} from 'stream'; function listAllPolyfills(): string[]; function describePolyfill(featureName: string): Promise; function getOptions(opts: Partial): PolyfillOptions; function getPolyfills(opts: Partial): Promise; function getPolyfillString(opts: Partial&{stream?: true}): Readable; function getPolyfillString(opts: Partial&{stream: false}): Promise; type PolyfillMetadata = { }; type PolyfillFeatureList = { [featureName: string]: { flags?: string[] } }; type PolyfillOptions = { minify: boolean, unknown: 'polyfill'|'ignore', features: PolyfillFeatureList, excludes: string[], uaString: string, rum: boolean, }; type PolyfillFeature = { flags: string[], dependencyOf: string[], aliasOf: string[], } type PolyfillFeatures = { [featureName: string]: PolyfillFeature }; }