1 | import { StringMap } from '@naturalcycles/js-lib';
|
2 | import { SlackAttachmentField, SlackMessage, SlackServiceCfg } from './slack.service.model';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare class SlackService<CTX = any> {
|
16 | constructor(cfg: Partial<SlackServiceCfg<CTX>>);
|
17 | cfg: SlackServiceCfg<CTX>;
|
18 | /**
|
19 | * Allows to "log" many things at once, similar to `console.log(one, two, three).
|
20 | */
|
21 | log(...items: any[]): Promise<void>;
|
22 | send(msg: SlackMessage<CTX> | string, ctx?: CTX): Promise<void>;
|
23 | kvToFields(kv: StringMap<any>): SlackAttachmentField[];
|
24 | }
|
25 | export declare function slackDefaultMessagePrefixHook(msg: SlackMessage): string[];
|