///
/**
* Copies text to the native clipboard, either via the `navigator.clipboard`
* API, or old `document.execCommand('copy')` hacks!
*
* Based on this excellent StackOverflow answer:
* https://stackoverflow.com/a/45308151
*/
declare function copyToClipboard(text: string): Promise;
/**
* As a fallback when `navigator.clipboard` is unavailable, we create an
* ephemeral