import { EventHandlerRegistration } from "@atomist/sdm"; import { OptionGroup } from "@atomist/slack-messages"; import { LifecycleParametersDefinition } from "../../../lifecycle/Lifecycle"; import { BotJoinedChannel } from "../../../typings/types"; import { RepoProvider } from "../../command/slack/LinkOwnerRepo"; export declare function botJoinedChannel(): EventHandlerRegistration; export declare function repoOptions(lol: RepoProvider[][]): OptionGroup[]; /** * Find the best `max` repository name matches with `channel`. To * match either the repository name must be contained in the channel * name or vice versa. Matches are rated more highly if the * difference in length between the channel and repository names is * smaller, sorting matches with the same length difference by name. * * @param channel name of channel * @param repos repositories to search for matches * @param max maximum number of repositories to return * @return array of `max` matching repositories */ export declare function fuzzyChannelRepoMatch(channel: string, repos: BotJoinedChannel.Repo[], max?: number): BotJoinedChannel.Repo[];