/** * Builds a CSS selector for the clicked element. The selector is a best effort at something a * human recognises and a backend can group by — it is not guaranteed to resolve to exactly one * element, and it is never used to query the DOM. * * Walks up at most `MAX_ANCESTOR_DEPTH` ancestors, stopping early at the first id or stable data * attribute, which carries more meaning than anything further up the tree. */ export declare function buildCssSelector(target: Element): string; /** * The visible label of the clicked element, for a human reading the event without opening the * replay ("Submit order", not just `button.primary`). * * Returns undefined whenever the text could carry user data: the element is masked or blocked * per the session recording configuration, or it is a field the user types into. Text is what * makes a rage click event readable, and also the only part of it that can leak — when in doubt * this drops it. */ export declare function extractText(target: Element): string | undefined; /** * Whether the element, or any ancestor, is excluded from the session recording. Reuses the * recording configuration rather than introducing a second masking surface: a consumer who * marked a subtree as sensitive for the replay means it for this event too, whether or not * session recording is actually running. */ export declare function isMaskedOrBlocked(el: Element): boolean;