/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { CommentBarButton } from '../comments/comment_bar_button.js'; import type { IFocusableNode } from '../interfaces/i_focusable_node.js'; import type { INavigationPolicy } from '../interfaces/i_navigation_policy.js'; /** * Set of rules controlling keyboard navigation from a CommentBarButton. */ export declare class CommentBarButtonNavigationPolicy implements INavigationPolicy { /** * Returns the first child of the given CommentBarButton. * * @param _current The CommentBarButton to return the first child of. * @returns Null. */ getFirstChild(_current: CommentBarButton): IFocusableNode | null; /** * Returns the parent of the given CommentBarButton. * * @param current The CommentBarButton to return the parent of. * @returns The parent comment of the given CommentBarButton. */ getParent(current: CommentBarButton): IFocusableNode | null; /** * Returns the next peer node of the given CommentBarButton. * * @param current The CommentBarButton to find the following element of. * @returns The next CommentBarButton, if any. */ getNextSibling(current: CommentBarButton): IFocusableNode | null; /** * Returns the previous peer node of the given CommentBarButton. * * @param current The CommentBarButton to find the preceding element of. * @returns The CommentBarButton's previous CommentBarButton, if any. */ getPreviousSibling(current: CommentBarButton): IFocusableNode | null; /** * Returns whether or not the given CommentBarButton can be navigated to. * * @param current The instance to check for navigability. * @returns True if the given CommentBarButton can be focused. */ isNavigable(current: CommentBarButton): boolean; /** * Returns whether the given object can be navigated from by this policy. * * @param current The object to check if this policy applies to. * @returns True if the object is an CommentBarButton. */ isApplicable(current: any): current is CommentBarButton; } //# sourceMappingURL=comment_bar_button_navigation_policy.d.ts.map