scriptable-testlab
Version:
A lightweight, efficient tool designed to manage and update scripts for Scriptable.
32 lines (29 loc) • 749 B
text/typescript
import { AbsMessage } from 'scriptable-abstract';
interface MessageState {
recipients: string[];
body: string;
}
/**
* Mock implementation of Scriptable's Message.
* Provides functionality for sending messages.
* @implements Message
*/
declare class MockMessage extends AbsMessage<MessageState> {
private static _instance;
static get instance(): MockMessage;
constructor();
get recipients(): string[];
set recipients(value: string[]);
get body(): string;
set body(value: string);
/**
* Send the message.
* @returns A promise that resolves when the message is sent
*/
send(): Promise<void>;
/**
* Clear the message details
*/
clear(): void;
}
export { MockMessage };