15 lines
594 B
TypeScript
15 lines
594 B
TypeScript
/**
|
|
* 使用现代Clipboard API复制文本到剪贴板
|
|
* @param {string} text - 要复制的文本
|
|
* @returns {Promise<boolean>} 复制是否成功
|
|
*/
|
|
export declare function copyToClipboard(text: any): Promise<boolean>;
|
|
/**
|
|
* 使用现代Clipboard API读取剪贴板文本
|
|
* @returns {Promise<string>} 剪贴板中的文本内容
|
|
*/
|
|
export declare function readToClipboard(): Promise<string>;
|
|
export declare function copyToMemory(text: any, key?: string): void;
|
|
export declare function readToMemory(key?: string): any;
|
|
export declare function clearMemoryClipboard(key?: string): void;
|