export type Focus = {
host: HTMLElement;
opener: HTMLElement | null;
armed: boolean;
/** Remembers the currently focused element as the opener, and disarms any pending restore. */
capture(): void;
/** Arms the pending restore when focus is inside the surface. */
arm(): void;
/** Walks focus back to the opener (after the close flip). */
restore(): void;
};
/**
* Focus restorer: remembers the opener when the surface opens, and
* restores focus to it when the surface closes with focus still
* inside. Focus *into* the content on open is the Popover API's job
* (the focusing steps honor `[autofocus]`); `popover="manual"` never
* captures the previously focused element, so the restore cannot be
* native.
*/
export declare const useFocusRestorer: () => Focus;