/** * @license * Copyright Google LLC 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 { ElementRef } from '@angular/core'; import { MediaMarshaller, BaseDirective2, StyleBuilder, StyleDefinition, StyleUtils } from '@angular/flex-layout/core'; import * as i0 from "@angular/core"; export declare class ImgSrcStyleBuilder extends StyleBuilder { buildStyles(url: string): { content: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class ImgSrcDirective extends BaseDirective2 { protected platformId: Object; protected serverModuleLoaded: boolean; protected DIRECTIVE_KEY: string; protected defaultSrc: string; set src(val: string); constructor(elementRef: ElementRef, styleBuilder: ImgSrcStyleBuilder, styler: StyleUtils, marshal: MediaMarshaller, platformId: Object, serverModuleLoaded: boolean); /** * Use the [responsively] activated input value to update * the host img src attribute or assign a default `img.src=''` * if the src has not been defined. * * Do nothing to standard `` usages, only when responsive * keys are present do we actually call `setAttribute()` */ protected updateWithValue(value?: string): void; protected styleCache: Map; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * This directive provides a responsive API for the HTML 'src' attribute * and will update the img.src property upon each responsive activation. * * e.g. * * * @see https://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-src/ */ export declare class DefaultImgSrcDirective extends ImgSrcDirective { protected inputs: string[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }