/**
 * Copyright (c) Microsoft Corporation.
 *
 * 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 { Page } from './page';
import type * as types from './types';
import type { CallMetadata, InstrumentationListener, SdkObject } from './instrumentation';
export type ScreencastClient = {
    onFrame: (frame: types.ScreencastFrame) => Promise<void> | void;
    gracefulClose?: () => Promise<void> | void;
    dispose: () => void;
    size?: types.Size;
    quality?: number;
};
type AnnotatePosition = 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right';
type ActionOptions = {
    duration?: number;
    position?: AnnotatePosition;
    fontSize?: number;
};
export declare class Screencast implements InstrumentationListener {
    readonly page: Page;
    private _clients;
    private _actions;
    private _size;
    private _lastFrame;
    constructor(page: Page);
    handlePageOrContextClose(): Promise<void>;
    dispose(): void;
    showActions(options: ActionOptions): void;
    hideActions(): void;
    addClient(client: ScreencastClient): {
        size: types.Size;
    };
    removeClient(client: ScreencastClient): void;
    private _startScreencast;
    private _stopScreencast;
    onScreencastFrame(frame: types.ScreencastFrame, ack?: () => void): void;
    onBeforeCall(sdkObject: SdkObject, metadata: CallMetadata, parentId?: string): Promise<void>;
    onBeforeInputAction(sdkObject: SdkObject, metadata: CallMetadata): Promise<void>;
}
export {};
//# sourceMappingURL=screencast.d.ts.map