import { URI } from "../../../base/common/uri.js"; export declare const IClipboardService: import("../../instantiation/common/instantiation.js").ServiceIdentifier; export interface IClipboardService { readonly _serviceBrand: undefined; /** * Trigger the paste. Returns undefined if the paste was not triggered or a promise that resolves on paste end. */ triggerPaste(targetWindowId: number): Promise | undefined; /** * Writes text to the system clipboard. */ writeText(text: string, type?: string): Promise; /** * Reads the content of the clipboard in plain text */ readText(type?: string): Promise; /** * Reads text from the system find pasteboard. */ readFindText(): Promise; /** * Writes text to the system find pasteboard. */ writeFindText(text: string): Promise; /** * Writes resources to the system clipboard. */ writeResources(resources: URI[]): Promise; /** * Reads resources from the system clipboard. */ readResources(): Promise; /** * Find out if resources are copied to the clipboard. */ hasResources(): Promise; /** * Resets the internal state of the clipboard (if any) without touching the real clipboard. * * Used for implementations such as web which do not always support using the real clipboard. */ clearInternalState?(): void; /** * Reads resources from the system clipboard as an image. If the clipboard does not contain an * image, an empty buffer is returned. */ readImage(): Promise; }