/**
 * Reporters (for example the Allure and HTML reporters) get screenshots from the
 * `command` and `result` events of the WebDriver Classic screenshot commands. A
 * WebDriver BiDi command sends no such event, so send the events of the Classic
 * command that the BiDi capture replaces.
 * @param browser    the browser that sends the events
 * @param command    the Classic command that the capture replaces
 * @param capture    takes the screenshot and resolves with its base64 data
 * @param elementId  the element of `takeElementScreenshot`
 * @returns the base64 data of the screenshot
 */
export declare function withScreenshotEvents(browser: WebdriverIO.Browser, command: 'takeScreenshot' | 'takeElementScreenshot', capture: () => Promise<string>, elementId?: string): Promise<string>;
//# sourceMappingURL=screenshotEvents.d.ts.map