import { BaseFileComponent } from '../_common'; /** * @tagname %%prefix%%-file-reader * @beta * * @fires file-read - Fired when file content is successfully read * @fires error - Fired on validation or read/parse errors * @fires clear - Fired when selection is cleared (from base) */ export declare class FileReader extends BaseFileComponent { private processingTimeout; autoProcess: boolean; processingDelayMs: number; fileContent: any; onFileRead?: (data: any) => void; constructor(); /** * Handles file selection and validation * @beta - Currently supports single JSON files only. Future versions will support multiple files and additional file types. * @param files - The selected files */ protected onFileSelected(files: File[]): void; protected onFileCleared(): void; /** * Processes the selected file and parses its content * For JSON files, attempts to parse the content and emit processed data * Sets processing state and handles errors appropriately */ handleFileProcessing(): Promise; /** * Gets the current file content for external access * @returns The parsed file content or null if no file is processed */ getFileContent(): any; /** * Disconnected callback to clean up timeouts */ disconnectedCallback(): void; } /** * The Foundation File Reader * * @public * @beta * @remarks * HTML Element: \ * * A component for selecting and processing files locally without uploading to server. * Primarily designed for JSON file processing with optional auto-processing capabilities. */ export declare const foundationFileReader: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition) => import("@microsoft/fast-foundation").FoundationElementRegistry; //# sourceMappingURL=file-reader.d.ts.map