import { Page, Locator } from 'playwright';
export declare class ToolTipper {
    readonly defaultDuration: number;
    constructor(defaultDuration: number);
    /**
     * Show the given tooltip text in the top-left corner of the page for the given duration.
     * If duration <= 0 or toolTip is empty, does nothing. Blocks execution for the duration.
     */
    blipToolTip(page: Page, toolTip: string, duration?: number): Promise<void>;
    /**
     * Show the given tooltip text visually adjacent to the given element for the given duration.
     * Blocks execution for the duration.
     */
    blipToolTipAtElement(page: Page, element: Locator, toolTip: string, duration?: number): Promise<void>;
    /**
     * Creates a tooltip in the top-left corner, inside a shadow root to avoid CSS collisions.
     * Returns the tooltip's unique ID.
     */
    private displayToolTip;
    /**
     * Creates a tooltip adjacent to the element, inside a shadow root to avoid CSS collisions.
     * Returns the tooltip's unique ID.
     */
    private displayToolTipForElement;
    /**
     * Removes the tooltip with the given ID from the shadow root (top-level).
     */
    private static removeElementById;
    /**
     * Same as removeElementById but uses the element's frame context
     * in case the tooltip was created via that element's evaluate call.
     */
    private static useElementToRemoveElementById;
}
//# sourceMappingURL=ToolTipper.d.ts.map