UNPKG

scriptable-testlab

Version:

A lightweight, efficient tool designed to manage and update scripts for Scriptable.

32 lines (29 loc) 766 B
import { AbsQuickLook } from 'scriptable-abstract'; interface QuickLookState { lastPreviewedItem: string | Image | Data | null; } /** * Mock implementation of Scriptable's QuickLook global variable * Provides functionality for previewing various types of content * * @implements QuickLook */ declare class MockQuickLook extends AbsQuickLook<QuickLookState> { static get instance(): MockQuickLook; constructor(); /** * @inheritdoc */ present(item: string | Image | Data): Promise<void>; /** * @additional * Get the last previewed item */ getLastPreviewedItem(): string | Image | Data | null; /** * @additional * Clear the preview history */ clear(): void; } export { MockQuickLook };