/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// import { ModuleMetadata } from '../metadata'; export interface MetadataReaderHost { getSourceFileMetadata(filePath: string): ModuleMetadata | undefined; cacheMetadata?(fileName: string): boolean; fileExists(filePath: string): boolean; readFile(filePath: string): string; } export interface MetadataReaderCache { } export declare function createMetadataReaderCache(): MetadataReaderCache; export declare function readMetadata(filePath: string, host: MetadataReaderHost, cache?: MetadataReaderCache): ModuleMetadata[] | undefined;