/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

import { Disposable } from '@sussudio/base/common/lifecycle.mjs';
import {
	FoundInFrameResult,
	IWebviewManagerService,
	WebviewWebContentsId,
	WebviewWindowId,
} from '../common/webviewManagerService.mjs';
import { IWindowsMainService } from '../../windows/electron-main/windows.mjs';
export declare class WebviewMainService extends Disposable implements IWebviewManagerService {
	private readonly windowsMainService;
	readonly _serviceBrand: undefined;
	private readonly _onFoundInFrame;
	onFoundInFrame: import('@sussudio/base/common/event.mjs').Event<FoundInFrameResult>;
	constructor(windowsMainService: IWindowsMainService);
	setIgnoreMenuShortcuts(id: WebviewWebContentsId | WebviewWindowId, enabled: boolean): Promise<void>;
	findInFrame(
		windowId: WebviewWindowId,
		frameName: string,
		text: string,
		options: {
			findNext?: boolean;
			forward?: boolean;
		},
	): Promise<void>;
	stopFindInFrame(
		windowId: WebviewWindowId,
		frameName: string,
		options: {
			keepSelection?: boolean;
		},
	): Promise<void>;
	private getFrameByName;
}
