import { CustomError } from 'ts-custom-error';
export type ChildProcessErrorData = {
    error: Error;
    stdout?: string;
    stderr?: string;
};
export declare class ChildProcessError extends CustomError {
    data: ChildProcessErrorData;
    constructor(data: ChildProcessErrorData);
}
export declare function exec(list: Array<string>): Promise<{
    stdout: string;
    stderr: string;
}>;
export type Message = {
    form: 'rise' | 'fall';
    text?: string;
    link?: Record<string, any>;
};
export declare function spawn(args: Array<string>, onOutput?: (msg: Message) => void): Promise<unknown>;
