blob: 690e3fd6da2b31ea71fb1fdf5744bb523f88e3c8 [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { InjectionToken } from '@angular/core';
import { FocusTrap } from './focus-trap';
/** The injection token used to specify the inert strategy. */
export declare const FOCUS_TRAP_INERT_STRATEGY: InjectionToken<FocusTrapInertStrategy>;
/**
* A strategy that dictates how FocusTrap should prevent elements
* outside of the FocusTrap from being focused.
*/
export interface FocusTrapInertStrategy {
/** Makes all elements outside focusTrap unfocusable. */
preventFocus(focusTrap: FocusTrap): void;
/** Reverts elements made unfocusable by preventFocus to their previous state. */
allowFocus(focusTrap: FocusTrap): void;
}