import { TerminalParams, Terminal } from "types/terminals"; import BaseResource from "./base"; import { List, ListOption } from "types"; export default class VirtualTerminalsResource extends BaseResource { constructor(apiKey: string, maxRetries: number, timeout: number); /** * Creates a new virtual terminal. * @param params - Parameters for terminal creation. * @returns The created Terminal. */ create(params: TerminalParams): Promise; /** * Retrieves a virtual terminal by its ID. * @param id - The ID of the virtual terminal. * @returns The Terminal details. */ retrieve(id: string): Promise; /** * Updates a virtual terminal. * @param id - The ID of the virtual terminal. * @param params - Parameters to update, including active status. * @returns The updated Terminal. */ update(id: string, params: TerminalParams & { active: boolean; }): Promise; /** * Permanently deletes a virtual terminal. * @param id - The ID of the terminal to delete. */ delete(id: string): Promise; /** * Lists virtual terminals with optional filters. * @param options - Listing options such as limit and search term. * @returns A list of Terminals. */ list(options?: ListOption): Promise>; /** * Downloads posters for a specified virtual terminal. * @param id - The ID of the virtual terminal to download posters for. * @returns A Promise containing the downloaded poster file as a Blob. */ downloadPosters(id: string): Promise; }