import { Func, PromiseOr } from '@jscrpt/common';
/**
 * Class that represents abstract metadata storage
 */
export declare class MetadataStorage<TMetadata = any> {
    protected getMetadataFn: Func<PromiseOr<TMetadata | null>, [string]>;
    constructor(getMetadataFn: Func<PromiseOr<TMetadata | null>, [string]>);
    /**
     * Gets metadata from storage
     * @param id - Id of metadata to be obtained
     */
    getMetadata(id: string): PromiseOr<TMetadata | null>;
}
//# sourceMappingURL=metadataStorage.service.d.ts.map