anchorbrowser
Version:
The official TypeScript library for the Anchorbrowser API
52 lines • 1.6 kB
TypeScript
import { APIResource } from "../../core/resource.js";
import { APIPromise } from "../../core/api-promise.js";
import { RequestOptions } from "../../internal/request-options.js";
export declare class Clipboard extends APIResource {
/**
* Retrieves the current content of the clipboard
*
* @example
* ```ts
* const clipboard = await client.sessions.clipboard.get(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* );
* ```
*/
get(sessionID: string, options?: RequestOptions): APIPromise<ClipboardGetResponse>;
/**
* Sets the content of the clipboard
*
* @example
* ```ts
* const response = await client.sessions.clipboard.set(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* { text: 'Text from clipboard API' },
* );
* ```
*/
set(sessionID: string, body: ClipboardSetParams, options?: RequestOptions): APIPromise<ClipboardSetResponse>;
}
export interface ClipboardGetResponse {
data?: ClipboardGetResponse.Data;
}
export declare namespace ClipboardGetResponse {
interface Data {
/**
* Text content of the clipboard
*/
text?: string;
}
}
export interface ClipboardSetResponse {
status?: string;
}
export interface ClipboardSetParams {
/**
* Text to set in the clipboard
*/
text: string;
}
export declare namespace Clipboard {
export { type ClipboardGetResponse as ClipboardGetResponse, type ClipboardSetResponse as ClipboardSetResponse, type ClipboardSetParams as ClipboardSetParams, };
}
//# sourceMappingURL=clipboard.d.ts.map