import { type Snippet } from 'svelte'; import type { PresenceActor, PresenceStore } from '@pixerate/editor/tools'; type Point = { x: number; y: number; }; interface Props { /** The cursors to draw, e.g. from `createPlaybackSurface` or a director. */ presence: PresenceStore; /** * How surface coordinates map to this layer's pixels: a canvas viewport * (`x * zoom + viewport.x`), or a function. Default: one to one. */ viewport?: { x: number; y: number; zoom: number; } | ((point: Point) => Point); /** Clip the cursors to the layer's box (default true). `false` lets a cursor visit chrome outside it. */ clip?: boolean; /** * Draws an actor's cursor in place of the default arrow, name tag and note (a host's own * presence cursor). It is placed at the actor's point; the focus ring is still drawn. */ cursor?: Snippet<[PresenceActor]>; class?: string; } declare const PresenceLayer: import("svelte").Component; type PresenceLayer = ReturnType; export default PresenceLayer;