///
export interface TestCommand {
command: Array;
check: (...x: any) => boolean;
}
export declare function createTestCommand(cmd: string, check: (...x: any) => boolean): TestCommand;
export interface TestEnv {
cwd: string;
env: {
[key: string]: any;
};
input?: string | Buffer | DataView;
}
export declare function testCommand(cmd: TestCommand, env: TestEnv, local: boolean): Promise;
export declare function shellCommand(cmd: string, env: TestEnv): import("child_process").SpawnSyncReturns;
export interface CartiTestLocations {
LOCAL_BASE_TEST_DIR: string;
LOCAL_TEST_HOME: string;
LOCAL_TEST_PROJECT_DIR: string;
REMOTE_BASE_TEST_DIR: string;
REMOTE_TEST_HOME: string;
REMOTE_TEST_PROJECT_DIR: string;
}
export declare const createCartiTestLocations: () => CartiTestLocations;
export interface TestEnvironments {
remoteTestEnvironment: TestEnv;
localTestEnvironment: TestEnv;
}
export declare const cartiCmd: (pth: string) => string;
export declare function isLocalScript(): boolean;
export declare const createTestEnvironments: (locations: CartiTestLocations) => TestEnvironments;
export declare const createTestEnvironment: (projectDir: string, testHome: string, local: boolean) => TestEnv;
export declare const installTestCarti: (env: TestEnv) => Promise;
export declare const contains: (phrase: string) => (res: string) => boolean;