/** * Copyright Zendesk, Inc. * * Use of this source code is governed under the Apache License, Version 2.0 * found at http://www.apache.org/licenses/LICENSE-2.0. */ type SelectionState = { focusedValue?: T; selectedValue?: T; }; type SelectionAction = { type: 'FOCUS'; payload?: any; } | { type: 'INCREMENT'; payload: any; } | { type: 'DECREMENT'; payload: any; } | { type: 'HOME'; payload: any; } | { type: 'END'; payload: any; } | { type: 'MOUSE_SELECT'; payload: any; } | { type: 'KEYBOARD_SELECT'; payload: any; } | { type: 'EXIT_WIDGET'; }; export declare const stateReducer: (state: SelectionState, action: SelectionAction) => SelectionState | { focusedValue: any; selectedValue?: T | undefined; } | { selectedValue: any; focusedValue?: T | undefined; }; export {};