import { type Ref } from 'vue'; /** The developer tools the localhost shell shows in its side panel, one at a time */ export type ShellPanel = 'configure' | 'share' | 'deploy' | 'sdk'; type OpenOptions = { /** * Move focus into the panel once it renders. For triggers far away from the panel in the Tab * order, so keyboard users land where it opened. */ focus?: boolean; }; type CloseOptions = { /** Send focus back to whatever had it when the panel opened, for closing from inside the panel */ restoreFocus?: boolean; }; type ShellPanelState = { /** The id of the panel element, for `aria-controls` on its triggers */ id: string; /** The open panel, if any */ active: Readonly>; /** Changes whenever an open asks for focus, and is undefined when it did not */ focusRequest: Readonly>; open: (panel: ShellPanel, options?: OpenOptions) => void; close: (options?: CloseOptions) => void; /** Opens the panel, or closes it when it is the one already open */ toggle: (panel: ShellPanel, options?: OpenOptions) => void; }; /** * State of the localhost shell's side panel, which shows one developer tool at a time beside the * card. The panel is not modal: the reference stays usable while it is open, so a configuration * change can be seen as it happens. * * @param id - The panel element's id, from `useId()` in the component that renders it */ export declare const useShellPanel: (id: string) => ShellPanelState; export {}; //# sourceMappingURL=use-shell-panel.d.ts.map