Files
2026-03-03 23:49:13 +01:00

27 lines
848 B
TypeScript

/**
* Node-side ghost cursor helpers.
* Injects the browser bundle and forwards mouse action events to the page overlay.
*/
import type { Page, MouseActionEvent } from '@xmorse/playwright-core';
export interface GhostCursorClientOptions {
style?: 'minimal' | 'dot' | 'screenstudio';
color?: string;
size?: number;
zIndex?: number;
easing?: string;
minDurationMs?: number;
maxDurationMs?: number;
speedPxPerMs?: number;
}
export declare function enableGhostCursor(options: {
page: Page;
cursorOptions?: GhostCursorClientOptions;
}): Promise<void>;
export declare function disableGhostCursor(options: {
page: Page;
}): Promise<void>;
export declare function applyGhostCursorMouseAction(options: {
page: Page;
event: MouseActionEvent;
}): Promise<void>;
//# sourceMappingURL=ghost-cursor.d.ts.map