import { Observable } from 'rxjs'; export interface IExec { code: number; cmd: string; stdout?: string; stderr?: string; } export interface IExecOptions { silent?: boolean; onExit?: () => void; } export declare class ExecutionError extends Error { code: number; constructor(error?: string, code?: number); setCode(code: number): this; } export declare function exec(cmd: string, options?: IExecOptions): IExec; export declare function execWithin(path: string, cmd: string, options?: IExecOptions): IExec; export declare function execAsync(cmd: string, options?: IExecOptions): Promise; export declare function execWithinAsync(path: string, cmd: string, options?: IExecOptions): Promise; export declare function exec$(cmd: string): Observable;