export type UseDebugShortcutProps = { /** The page's own authorization — the `debugMode` the SDK was mounted with, never anything the visitor can set. */ authorized: boolean; onToggle: () => void; }; /** * Shows or hides the dev tools on a page that was already allowed to show them; it cannot grant that permission. * The environment is deliberately not part of the rule — whoever mounts the SDK may well want to debug a * production space — but a visitor of a site that never asked for debugging must not reach the panel, the element * ids or the store by knowing the shortcut. * * **Two chords, and the second is not a convenience.** On a Mac the top row is media keys unless the visitor * holds `fn` or has changed a system setting, so `shift+F12` is a shortcut a good half of the people reading this * cannot press. `shift+alt+D` is typeable on every keyboard, which is what makes the panel actually reachable. */ declare const useDebugShortcut: ({ authorized, onToggle }: UseDebugShortcutProps) => void; export default useDebugShortcut;