2022-10-10 12:50:21 +00:00
|
|
|
import * as plugos from "../plugos/types.ts";
|
2023-01-20 15:08:01 +00:00
|
|
|
import { CronHookT } from "../plugos/hooks/cron.ts";
|
2022-10-10 12:50:21 +00:00
|
|
|
import { EventHookT } from "../plugos/hooks/event.ts";
|
|
|
|
import { CommandHookT } from "../web/hooks/command.ts";
|
|
|
|
import { SlashCommandHookT } from "../web/hooks/slash_command.ts";
|
2023-07-14 14:48:35 +00:00
|
|
|
import { PlugNamespaceHookT } from "./hooks/plug_namespace.ts";
|
2022-12-22 15:20:05 +00:00
|
|
|
import { CodeWidgetT } from "../web/hooks/code_widget.ts";
|
2023-08-10 16:32:41 +00:00
|
|
|
import { MQHookT } from "../plugos/hooks/mq.ts";
|
2023-08-11 18:37:13 +00:00
|
|
|
import { EndpointHookT } from "../plugos/hooks/endpoint.ts";
|
2022-10-10 12:50:21 +00:00
|
|
|
|
|
|
|
export type SilverBulletHooks =
|
|
|
|
& CommandHookT
|
|
|
|
& SlashCommandHookT
|
|
|
|
& CronHookT
|
2023-08-10 16:32:41 +00:00
|
|
|
& MQHookT
|
2022-10-10 12:50:21 +00:00
|
|
|
& EventHookT
|
2022-12-22 15:20:05 +00:00
|
|
|
& CodeWidgetT
|
2023-08-11 18:37:13 +00:00
|
|
|
& EndpointHookT
|
2023-07-14 14:48:35 +00:00
|
|
|
& PlugNamespaceHookT;
|
2022-10-10 12:50:21 +00:00
|
|
|
|
|
|
|
export type SyntaxExtensions = {
|
|
|
|
syntax?: { [key: string]: NodeDef };
|
|
|
|
};
|
|
|
|
|
|
|
|
export type NodeDef = {
|
|
|
|
firstCharacters: string[];
|
|
|
|
regex: string;
|
|
|
|
styles: { [key: string]: string };
|
|
|
|
className?: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type Manifest = plugos.Manifest<SilverBulletHooks> & SyntaxExtensions;
|