import type { KeyEvent } from "@opentui/core"; import { type ReactNode } from "react"; export type ScopedKeyHandler = (key: KeyEvent) => boolean | void; interface ScopedKeyboardListener { id: string; scopeId: string; priority: number; active: boolean; order: number; handler: ScopedKeyHandler; } interface DispatchOptions { activeScopeId?: string; } export declare function dispatchScopedKeyboardEvent(key: KeyEvent, listeners: ScopedKeyboardListener[], options: DispatchOptions): boolean; export interface FocusScopeProviderProps { children: ReactNode; } export declare function FocusScopeProvider({ children }: FocusScopeProviderProps): ReactNode; export interface UseFocusScopeOptions { active?: boolean; } export declare function useFocusScope(scopeId: string, options?: UseFocusScopeOptions): { isActive: boolean; hasProvider: boolean; stack: string[]; }; export interface UseScopedKeyboardOptions { active?: boolean; priority?: number; } export declare function useScopedKeyboard(scopeId: string, handler: ScopedKeyHandler, options?: UseScopedKeyboardOptions): boolean; export {}; //# sourceMappingURL=focus-scope.d.ts.map