/** * @flow strict */ "use strict"; type DirectMessageObject = {| message_type: string, ids: $ReadOnlyArray, |}; type StreamObject = {| message_type: string, stream_id: number, topic: string, |}; type Worker = {| get_current_time: () => number, // as ms since epoch notify_server_start: (DirectMessageObject | StreamObject) => void, notify_server_stop: (DirectMessageObject | StreamObject) => void, |}; declare export function update( worker: Worker, new_recipient: DirectMessageObject | StreamObject | null, ): void;