/**
 * Text selection controller for the text layer.
 *
 * Works together with CSS (user-select: none on layer, user-select: text on spans)
 * to prevent selection issues when mouse moves through gaps between text.
 */
/**
 * Attach selection handling to a text layer element.
 * Returns a cleanup function to remove event listeners.
 */
export declare function attachSelectionController(layer: HTMLDivElement): () => void;
//# sourceMappingURL=selection.d.ts.map