mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
21 lines
716 B
TypeScript
Executable File
21 lines
716 B
TypeScript
Executable File
import type { ClientOperation } from '@revanced/bot-shared'
|
|
import type { Logger } from '@revanced/bot-shared'
|
|
import type { Wit } from 'node-wit'
|
|
import type { Worker as TesseractWorker } from 'tesseract.js'
|
|
import { ClientPacketObject } from '../classes/Client'
|
|
import type { Config } from '../utils/getConfig'
|
|
|
|
export { default as parseTextEventHandler } from './parseText'
|
|
export { default as parseImageEventHandler } from './parseImage'
|
|
|
|
export type EventHandler<POp extends ClientOperation> = (
|
|
packet: ClientPacketObject<POp>,
|
|
context: EventContext,
|
|
) => void | Promise<void>
|
|
export type EventContext = {
|
|
witClient: Wit
|
|
tesseractWorker: TesseractWorker
|
|
logger: Logger
|
|
config: Config
|
|
}
|