import type { ProjectCommandArguments, WorkspaceGrantArgument } from '../../types/commands/common_arguments'; import type { ShellProcess } from '../../types/shell'; export interface StringWaitArgument { /** @description String to wait for in the command output before this function returns. */ stringToWaitFor: string; } export interface TimeoutArgument { /** @description Number of milliseconds to wait for process execution. Defaults to 10 seconds. */ timeout?: number; } export interface ProcessArgument { /** @description CLI process previous created via a `*Start` command. */ proc: ShellProcess; } export interface RunDeployArguments extends WorkspaceGrantArgument { /** @description Hides output and prompts related to triggers. Defaults to `true`. */ hideTriggers?: boolean; /** @description Delete the app after `run` process finishes. Defaults to `true`. */ cleanup?: boolean; } /** * `slack platform activity` * @returns command output */ export declare const activity: (args: ProjectCommandArguments & { /** @description Source of logs to filter; can be `slack` or `developer`. */ source?: "slack" | "developer"; }) => Promise; /** * `slack platform activity` but waits for a specified sequence then returns the shell * At the specific point where the sequence is found to continue with test * @returns command output */ export declare const activityTailStart: (args: ProjectCommandArguments & StringWaitArgument & TimeoutArgument) => Promise; /** * Waits for a specified string in the provided `activityTailStart` process output, * kills the process then returns the output * @returns command output */ export declare const activityTailStop: (args: StringWaitArgument & ProcessArgument & TimeoutArgument) => Promise; /** * `slack deploy` * @returns command output */ export declare const deploy: (args: ProjectCommandArguments & Omit) => Promise; /** * start `slack run`. `runStop` must be used to stop the `run` process returned by this method. * @returns shell object to kill it explicitly in the test case via `runStop` */ export declare const runStart: (args: ProjectCommandArguments & RunDeployArguments & TimeoutArgument) => Promise; /** * stop `slack run` * @param teamName to check that app was deleted from that team */ export declare const runStop: (args: ProcessArgument & TimeoutArgument & { /** * @description Should wait for the `run` process to spin down before exiting this function. * On Windows, this property is always set to `true`. Defaults to `false`. */ waitForShutdown?: boolean; }) => Promise; declare const _default: { activity: (args: ProjectCommandArguments & { /** @description Source of logs to filter; can be `slack` or `developer`. */ source?: "slack" | "developer"; }) => Promise; activityTailStart: (args: ProjectCommandArguments & StringWaitArgument & TimeoutArgument) => Promise; activityTailStop: (args: StringWaitArgument & ProcessArgument & TimeoutArgument) => Promise; deploy: (args: ProjectCommandArguments & Omit) => Promise; runStart: (args: ProjectCommandArguments & RunDeployArguments & TimeoutArgument) => Promise; runStop: (args: ProcessArgument & TimeoutArgument & { /** * @description Should wait for the `run` process to spin down before exiting this function. * On Windows, this property is always set to `true`. Defaults to `false`. */ waitForShutdown?: boolean; }) => Promise; }; export default _default; //# sourceMappingURL=platform.d.ts.map