import type { ShellProcess } from '../../types/shell'; import { type SlackCLIGlobalOptions, type SlackCLIHostTargetOptions } from '../cli-process'; type AuthLoginNoPromptArguments = SlackCLIHostTargetOptions & Pick; type AuthLoginChallengeExchangeArugments = SlackCLIHostTargetOptions & { /** @description Challenge string extracted from the Slack client UI after submitting the auth slash command. */ challenge: string; /** @description The `authTicket` output from `loginNoPrompt`; required to complete the login flow. */ authTicket: string; } & Pick; declare const _default: { /** * `slack login --no-prompt`; initiates a CLI login flow. The `authTicketSlashCommand` returned should be entered * into the Slack client, and the challenge code retrieved and fed into the `loginChallengeExchange` method to * complete the CLI login flow. */ loginNoPrompt: (args?: AuthLoginNoPromptArguments) => Promise<{ /** @description Command output */ output: ShellProcess["output"]; /** * @description Slash command that a Slack client user must enter into the message composer in order to initiate * login flow. * @example `/slackauthticket MTMxNjgxMDUtYTYwOC00NzRhLWE3M2YtMjVmZTQyMjc1MDg4` */ authTicketSlashCommand: string; /** * An auth ticket is a A UUID sequence granted by Slack to a CLI auth requestor. * That ticket must then be submitted via slash command by a user logged in to Slack and permissions accepted to be * granted a token for use. This `authTicket` is included in the `authTicketSlashCommand`. */ authTicket: string; }>; /** * `slack login --no-prompt --challenge --ticket` * @param authTicket authTicket string from loginNoPrompt * @param options * @returns */ loginChallengeExchange: (args: AuthLoginChallengeExchangeArugments) => Promise; /** * `slack logout` * @returns command output */ logout: (args?: Omit & (Pick | { /** * @description Perform the logout for all authentications. * The `team` argument takes precendence over this argument. */ all?: boolean; })) => Promise; }; export default _default; //# sourceMappingURL=auth.d.ts.map