/** * Copyright 2023-present DreamNum Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { DocumentDataModel } from '@univerjs/core'; import type { IRenderContext } from '@univerjs/engine-render'; import { IContextService, ILogService, IUniverInstanceService } from '@univerjs/core'; import { DocSelectionManagerService, DocSkeletonManagerService } from '@univerjs/docs'; import { ILayoutService } from '@univerjs/ui'; import { IDocEmbedInteractionBoundaryService, IDocEmbedRuntimeFocusCoordinator } from '../doc-embed-integration.service'; import { DocSelectionRenderService } from '../selection/doc-selection-render.service'; export declare class MobileDocSelectionRenderService extends DocSelectionRenderService { private readonly _mobileDocSkeletonManagerService; private readonly _handleDragDisposables; private readonly _selectionVisuals; private readonly _keyboardState$; private readonly _editMode$; private _viewportBaselineHeight; private _viewportBaselineBottom; private _viewportBaselineWidth; private _pendingBlurEvent; readonly mobileKeyboardState$: import("rxjs").Observable<{ visible: boolean; inset: number; }>; readonly mobileKeyboardVisible$: import("rxjs").Observable; readonly mobileEditMode$: import("rxjs").Observable; get isMobileEditMode(): boolean; constructor(context: IRenderContext, layoutService: ILayoutService, logService: ILogService, contextService: IContextService, univerInstanceService: IUniverInstanceService, _mobileDocSkeletonManagerService: DocSkeletonManagerService, docSelectionManagerService: DocSelectionManagerService, embedInteractionBoundaryService?: IDocEmbedInteractionBoundaryService, embedRuntimeFocusCoordinator?: IDocEmbedRuntimeFocusCoordinator); cancelPointerSelection(): void; enterMobileEditMode(shouldFocusInput?: boolean): boolean; suspendMobileEditingInput(): void; exitMobileEditMode(): void; refreshRanges(): void; protected _positionInput(_x: number, _y: number): void; private _syncMobileSelectionVisuals; private _initMobileKeyboardViewport; protected _updateInputPosition({ forceFocus, preserveFocus }?: { forceFocus?: boolean | undefined; preserveFocus?: boolean | undefined; }): void; protected _handleInputBlur(event: Event): void; protected _handleInputFocus(event: Event): void; protected _setEditing(isEditing: boolean): void; private _startSelectionHandleDrag; private _updateMobileKeyboardState; private _setMobileKeyboardState; dispose(): void; }