export declare type Focus = "first" | "last" | string; /** * A function that is used to focus an element within the provided node. This * can either focus the first, last, or a querySelector found element. * * @param container - Either an HTMLElement or the document to focus an element * within. * @param focus - Either the "first" or "last" string to focus the first or last * focusable element within the container or a query selector string to find a * focusable element within the container. * @param programmatic - Boolean if programmatically focusable elements should be * included as well. * @param preventScroll - Boolean if the focus event should not scroll the * element into view. This should normally remain `false`, but can be useful if * the element gets focused while offscreen during a transition. * @param elements - Optional child elements to search * @remarks \@since 2.8.0 Supports focusing the container element if it is * focusable */ export declare function focusElementWithin(container: HTMLElement | Document, focus: Focus, programmatic?: boolean, preventScroll?: boolean, elements?: readonly HTMLElement[]): void;