import type { BaseClient } from './types.js';
/**
 * Classic history endpoints. WebdriverIO installs its own `back` and `forward`
 * on the session, so calling `this.back()` from those commands would recurse.
 * `browser.url()` can call `this.navigateTo()` because the names differ.
 */
declare const CLASSIC_HISTORY_COMMANDS: {
    readonly back: {
        readonly method: "POST";
        readonly endpoint: "/session/:sessionId/back";
    };
    readonly forward: {
        readonly method: "POST";
        readonly endpoint: "/session/:sessionId/forward";
    };
};
export type ClassicHistoryCommand = keyof typeof CLASSIC_HISTORY_COMMANDS;
/**
 * Run the classic WebDriver `back` or `forward` command by name.
 *
 * The HTTP request is built from the protocol definition, not from the
 * instance method. A BiDi session whose connection is down (`isBidi === false`)
 * still posts to `POST /session/:sessionId/back` or `.../forward`.
 */
export declare function runClassicProtocolCommand(this: Pick<BaseClient, 'sessionId' | 'options' | 'capabilities' | 'isSeleniumStandalone'>, commandName: ClassicHistoryCommand): Promise<void>;
export {};
//# sourceMappingURL=classicProtocolCommand.d.ts.map