import { NativeModule, requireNativeModule } from 'expo-modules-core'; import { ClipboardImage, ClipboardEvent, GetImageOptions, GetStringOptions, SetStringOptions, } from './Clipboard.types'; export const clipboardEventName = 'onClipboardChanged'; type ExpoClipboardEvents = { [clipboardEventName]: (event: ClipboardEvent) => void; }; declare class NativeExpoClipboard extends NativeModule { setString(text: string): void; getStringAsync(options?: GetStringOptions): Promise; setStringAsync(text: string, options?: SetStringOptions): Promise; hasStringAsync(): Promise; getImageAsync(options: GetImageOptions): Promise; setImageAsync(base64Image: string): Promise; hasImageAsync(): Promise; getUrlAsync?: () => Promise; setUrlAsync?: (url: string) => Promise; hasUrlAsync?: () => Promise; isPasteButtonAvailable: boolean; } export default requireNativeModule('ExpoClipboard');