/// import cp from 'child_process'; import { BaseEncodingOptions } from 'fs'; declare type ICommandName = 'cmd.exe' | 'open' | 'xdg-open'; declare type IExtraCommandName = ICommandName | string; interface IOptions { command?: IExtraCommandName; encoding?: BaseEncodingOptions['encoding']; } declare function opener(args: string | string[], options?: IOptions, callback?: () => void): cp.ChildProcess; export default opener;