import { EventEmitter, ElementRef, Renderer2, TemplateRef, ViewContainerRef, ChangeDetectorRef, OnInit, OnDestroy, NgZone } from '@angular/core'; import { TemplatePortalDirective } from '@angular/cdk/portal'; import { ICanDisable, IControlValueAccessor } from '@covalent/core/common'; import * as i0 from "@angular/core"; export declare class TdFileInputLabelDirective extends TemplatePortalDirective { constructor(templateRef: TemplateRef, viewContainerRef: ViewContainerRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class TdFileInputBase { _changeDetectorRef: ChangeDetectorRef; constructor(_changeDetectorRef: ChangeDetectorRef); } export declare const _TdFileInputMixinBase: (new (...args: any[]) => IControlValueAccessor) & (new (...args: any[]) => ICanDisable) & typeof TdFileInputBase; export declare class TdFileInputComponent extends _TdFileInputMixinBase implements OnInit, OnDestroy, IControlValueAccessor, ICanDisable { private _ngZone; private _renderer; private _multiple; /** The native `` element */ _inputButton: ElementRef; /** The native ` element */ _inputElement: ElementRef; get inputElement(): HTMLInputElement; /** * color?: 'accent' | 'primary' | 'warn' * Sets button color. Uses same color palette accepted as [MatButton]. */ color?: 'accent' | 'primary' | 'warn'; /** * multiple?: boolean * Sets if multiple files can be dropped/selected at once in [TdFileInputComponent]. */ set multiple(multiple: boolean | string); get multiple(): boolean; /** * accept?: string * Sets files accepted when opening the file browser dialog. * Same as 'accept' attribute in element. */ accept?: string; /** * select?: function * Event emitted a file is selected * Emits a [File | FileList] object. */ selectFile: EventEmitter; private _destroy$; constructor(_ngZone: NgZone, _renderer: Renderer2, _changeDetectorRef: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; /** * Method executed when a file is selected. */ handleSelect(files: File | FileList): void; /** * Used to clear the selected files from the [TdFileInputComponent]. */ clear(): void; /** Method executed when the disabled value changes */ onDisabledChange(v: boolean): void; /** * Sets disable to the component. Implemented as part of ControlValueAccessor. */ setDisabledState(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }