/** * USWDS Search Behavior * * Mirrors official USWDS search JavaScript behavior exactly * * @uswds-source https://github.com/uswds/uswds/blob/develop/packages/usa-search/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. */ /** * Get the form associated with a button * * SOURCE: index.js (Lines 14-17) * * @param button - The search button * @returns The search form element */ declare const getForm: (button: HTMLElement) => HTMLElement | null; /** * Toggle search form visibility * * SOURCE: index.js (Lines 19-55) * * @param button - The search button * @param active - Whether to show or hide the search */ declare const toggleSearch: (button: HTMLElement, active: boolean) => void; /** * Initialize search behavior * * SOURCE: index.js (Lines 67-82) * * @param root - Root element or document * @returns Cleanup function */ export declare function initializeSearch(root?: HTMLElement | Document): () => void; export { toggleSearch, getForm }; //# sourceMappingURL=usa-search-behavior.d.ts.map