/** * Closes something the moment a pointer goes down anywhere but inside it. * * The thread is drawn inside the editor's preview frame, while the rest of the editor * is in the document around it, so a click in either place has to count. Listening in * the capture phase means the click is seen even when whatever was hit swallows it. */ export declare function closeOnPointerDownOutside(inside: HTMLElement, close: () => void): () => void;