import { StringMap } from '@naturalcycles/js-lib'; import { SlackAttachmentField, SlackMessage, SlackServiceCfg } from './slack.service.model'; /** * Has 2 main methods: * * 1. .send({ items: any, channel: ..., ... }) * Low-level method with all possible options available. * * 2. .log(...items: any[]) * Shortcut method to "just log a bunch of things", everything is "by default" there. * * .send method has a shortcut: * .send(string, ctx?: CTX) */ export declare class SlackService { constructor(cfg: Partial>); cfg: SlackServiceCfg; /** * Allows to "log" many things at once, similar to `console.log(one, two, three). */ log(...items: any[]): Promise; send(msg: SlackMessage | string, ctx?: CTX): Promise; kvToFields(kv: StringMap): SlackAttachmentField[]; } export declare function slackDefaultMessagePrefixHook(msg: SlackMessage): string[];