import { WithRequiredT } from "type-ops"; import { CliTest } from "../clitest"; import { AnyObject } from "../types"; declare const actionsDef: { "command": { step: string; }; "exec": { cmd: string; matchRegex: string; regexFlags: string; step: string; }; "file-replace": { file: string; step: string; }; "output": { matchRegex: string; regexFlags: string; step: string; }; }; export declare type ActionType = keyof typeof actionsDef; interface CommonParams { step: boolean; } export interface GenericParams extends CommonParams, AnyObject { } export interface Action { type: ActionType; params: GenericParams; actionLineNum: number; filename: string; lines?: string[]; /** Number of spaces of the indent */ indent: number; } export declare type ActionComplete = WithRequiredT; export declare type NonActionType = "codetag" | "text"; export interface NonAction { type: NonActionType; /** Number of spaces of the indent */ indent: number; } export declare type LineType = Action | NonAction; export declare function validateAction(action: AnyObject): action is Action; export declare function isAction(action: AnyObject): action is Action; export declare function isActionComplete(action: AnyObject): action is ActionComplete; export declare function runActions(dt: CliTest, actions: ActionComplete[]): Promise; export {};