/** * @name copyText * @namespace node.clipboard * @type Function * @platform node * @status stable * * Simple function to copy things into the system clipboard. * This is using https://www.npmjs.com/package/clipboardy under the hood. * * @param {String} text The text to copy * @return {String}  The text that has been copied * * @todo tests * * @snippet __copyText($1) * * @example js * import { __copyText } from '@lotsof/sugar/clipboard'; * __copyText('Hello world'); * * @since 1.0.0 * @see https://www.npmjs.com/package/clipboardy * @author Olivier Bossel (https://lotsof.dev) */ export default function __copyText(text: string): string;