import { Destination, MessageClient, MessageOptions, SlackMessageClient } from "@atomist/automation-client"; import { SdmGoalState } from "@atomist/sdm"; import { SdmGoalKey } from "@atomist/sdm/lib/api/goal/SdmGoalMessage"; import { SlackMessage } from "@atomist/slack-messages"; export declare function isSdmGoalStoreOrUpdate(o: any): o is (SdmGoalKey & { state: SdmGoalState; sha: string; branch: string; goalSetId: string; push: any; }); /** * Runs inside an SDM in local mode. As Goal storage uses * a MessageClient, this enables a local SDM to react to goals that * it has set. This implementation ignores other messages and forwards * goals only. * Will onDispatch goal events to the appropriate event handler * within the SDM at the known address. */ export declare class GoalEventForwardingMessageClient implements MessageClient, SlackMessageClient { respond(msg: string | SlackMessage, options?: MessageOptions): Promise; send(msg: any, destinations: Destination | Destination[], options?: MessageOptions): Promise; addressChannels(msg: string | SlackMessage, channels: string | string[], options?: MessageOptions): Promise; addressUsers(msg: string | SlackMessage, users: string | string[], options?: MessageOptions): Promise; }