/** Dispatched on `window` to open Settings; `detail.page` names a page id. */ export declare const OPEN_SETTINGS_PAGE_EVENT = "agent-native:open-settings-page"; /** The page ⌘, opens. Legacy ids resolve through the settings redirect table. */ export declare const SETTINGS_SHORTCUT_PAGE = "account"; export interface OpenSettingsPageDetail { page?: string; } type SettingsShortcutKeyInput = Pick; export declare function isSettingsShortcutEvent(event: SettingsShortcutKeyInput): boolean; export declare function isSettingsRoutePath(routerPathname: string): boolean; export declare function settingsPagePath(page?: string): string; export declare function getSettingsShortcutHint(isMac: boolean): string; /** * Opens a Settings page from code outside the router (for example the command * menu). A mounted `useSettingsShortcut` claims the request and navigates in * the router; without one, the browser loads the page directly so the request * never silently does nothing. */ export declare function openSettingsPage(page?: string): void; /** * ⌘, (Ctrl+, off macOS) opens Settings from anywhere in the app, including * inside inputs and editors. It is a no-op on a Settings route. */ export declare function useSettingsShortcut({ enabled, }?: { enabled?: boolean; }): void; /** Mount point for `useSettingsShortcut`; must render inside a router. */ export declare function SettingsShortcut(): null; export {};