1 | import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
|
2 | import { Destination, MessageOptions, SlackFileMessage } from "@atomist/automation-client/lib/spi/message/MessageClient";
|
3 | import { SlackMessage } from "@atomist/slack-messages";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare type AddressChannels = (msg: string | SlackMessage | SlackFileMessage, opts?: MessageOptions) => Promise<void>;
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare const AddressNoChannels: AddressChannels;
|
14 |
|
15 |
|
16 |
|
17 | export interface HasChannels {
|
18 | channels?: Array<{
|
19 | name?: string;
|
20 | id?: string;
|
21 | team?: {
|
22 | id?: string;
|
23 | };
|
24 | }>;
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function addressChannelsFor(hasChannels: HasChannels, ctx: HandlerContext): AddressChannels;
|
34 | export declare function messageDestinationsFor(hasChannels: HasChannels, ctx?: HandlerContext): Destination[];
|
35 | export declare function addressDestinations(ctx: HandlerContext, ...destinations: Destination[]): AddressChannels;
|
36 |
|
\ | No newline at end of file |