UNPKG

scriptable-testlab

Version:

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

37 lines (34 loc) 1.17 kB
import { AbsArgs } from 'scriptable-abstract'; interface ArgsMockState { plainTexts: string[]; urls: string[]; fileURLs: string[]; images: Image[]; queryParameters: Record<string, string>; shortcutParameter: any; widgetParameter: any; notification: Notification; } declare class MockArgs extends AbsArgs<ArgsMockState> { static get instance(): MockArgs; protected constructor(); static reset(): void; get plainTexts(): string[]; get urls(): string[]; get fileURLs(): string[]; get images(): Image[]; get queryParameters(): Record<string, string>; get shortcutParameter(): any; get widgetParameter(): any; get notification(): Notification; setState(newState: Partial<ArgsMockState>): this; setPlainTexts(texts: string[]): void; setUrls(urls: string[]): void; setFileURLs(urls: string[]): void; setImages(images: Image[]): void; setQueryParameters(params: Record<string, string>): void; setShortcutParameter(param: any): void; setWidgetParameter(param: any): void; setNotification(notification: Notification): void; } export { type ArgsMockState, MockArgs };