/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ type Props = { defaultSelection?: 'rootStart' | 'rootEnd'; }; /** * Focuses the editor when the component is mounted. Pass `defaultSelection` * to control whether the selection is placed at the start (`'rootStart'`) or * end (`'rootEnd'`) of the root when there is no existing selection to restore. * * This is a legacy plugin. When building an editor with the extension API, * configure {@link AutoFocusExtension} instead. * * @returns `null`, this plugin renders no DOM of its own. */ export declare function AutoFocusPlugin({ defaultSelection }: Props): null; export {};