HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/node_modules/clipboardy/index.d.ts
/**
Write (copy) to the clipboard asynchronously.

@param text - The text to write to the clipboard.
*/
export function write(text: string): Promise<void>;

/**
Write (copy) to the clipboard synchronously.

Doesn't work in browsers.

@param text - The text to write to the clipboard.

@example
```
import * as clipboardy from 'clipboardy';

clipboardy.writeSync('🦄');

clipboardy.readSync();
//=> '🦄'
```
*/
export function writeSync(text: string): void;

/**
Read (paste) from the clipboard asynchronously.
*/
export function read(): Promise<string>;

/**
Read (paste) from the clipboard synchronously.

Doesn't work in browsers.
*/
export function readSync(): string;