/** * USWDS File Input Behavior * * Mirrors official USWDS file input JavaScript behavior exactly * * @uswds-source https://github.com/uswds/uswds/blob/develop/packages/usa-file-input/src/index.js * @uswds-version 3.10.0 * @last-synced 2025-10-05 * @sync-status ✅ UP TO DATE * * CRITICAL: This file replicates USWDS source code to maintain 100% behavior parity. * DO NOT add custom logic. ALL changes must come from USWDS source updates. */ /** * File input context interface */ interface FileInputContext { dropZoneEl: HTMLElement; inputEl: HTMLInputElement; } /** * Get an object of the properties and elements belonging directly to the given * file input component. * * SOURCE: index.js (Lines 47-61) * * @param el - The element within the file input * @returns Elements */ declare const getFileInputContext: (el: HTMLElement) => FileInputContext; /** * Disable the file input component * * SOURCE: index.js (Lines 68-73) * * @param el - An element within the file input component */ export declare const disable: (el: HTMLElement) => void; /** * Set aria-disabled attribute to file input component * * SOURCE: index.js (Lines 80-84) * * @param el - An element within the file input component */ export declare const ariaDisable: (el: HTMLElement) => void; /** * Enable the file input component * * SOURCE: index.js (Lines 91-97) * * @param el - An element within the file input component */ export declare const enable: (el: HTMLElement) => void; /** * Initialize file input behavior * * SOURCE: index.js (Lines 521-558) * * @param root - Root element or document * @returns Cleanup function */ export declare function initializeFileInput(root?: HTMLElement | Document): () => void; export { getFileInputContext }; //# sourceMappingURL=usa-file-input-behavior.d.ts.map