import { FoundationElement } from '@microsoft/fast-foundation'; /** * Abstract base class for file handling components * Provides common functionality for file selection, validation, and UI state management * @beta * * @fires error - Fired when file size validation fails * @fires clear - Fired when selection is cleared */ export declare abstract class BaseFileComponent extends FoundationElement { fileInput: HTMLInputElement; protected selectedFile: File | null; label: string; accept: string; fileSizeLimitBytes: number; fileName: string; isProcessing: boolean; /** * Opens the file picker dialog * Clears any previous file selection before opening */ handleClick(): void; /** * Handles file selection from the file input * Validates file size and sets up for processing * @param e - The change event from the file input */ onInputChange(e: Event): void; /** * Clears all file selection and processing state * Resets the component to its initial state */ clearSelection(): void; /** * Gets the currently selected file object * @returns The selected File object or null if no file is selected */ getSelectedFile(): File; /** * Shows an error notification using the unified error handling system * @param title - The error title * @param message - The error message */ protected showError(title: string, message: string): void; /** * Abstract method called when a file is selected * @param files - The selected file */ protected abstract onFileSelected(files: File[]): void; /** * Abstract method called when file selection is cleared */ protected abstract onFileCleared(): void; } //# sourceMappingURL=base-file-component.d.ts.map