mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
20 lines
461 B
Plaintext
20 lines
461 B
Plaintext
/**
|
|
* @flow strict
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
type RecipientUserIds = number[];
|
|
|
|
type Worker = {|
|
|
get_recipient: () => RecipientUserIds | void,
|
|
is_valid_conversation: (RecipientUserIds | void) => boolean,
|
|
get_current_time: () => number, // as ms since epoch
|
|
notify_server_start: RecipientUserIds => void,
|
|
notify_server_stop: RecipientUserIds => void
|
|
|};
|
|
|
|
declare export function handle_text_input(Worker): void;
|
|
|
|
declare export function stop(Worker): void;
|