/** * Configuration for declaration generation. */ export interface Config { /** * Skip source files whose paths match any of these glob patterns. If * undefined, defaults to excluding directories ending in "test" or "demo". */ exclude?: string[]; /** * Remove any triple-slash references to these files, specified as paths * relative to the analysis root directory. */ removeReferences?: string[]; /** * Additional files to insert as triple-slash reference statements. Given the * map `a: b[]`, a will get an additional reference statement for each file * path in b. All paths are relative to the analysis root directory. */ addReferences?: { [filepath: string]: string[]; }; } /** * Analyze all files in the given directory using Polymer Analyzer, and return * TypeScript declaration document strings in a map keyed by relative path. */ export declare function generateDeclarations(rootDir: string, config: Config): Promise>;