// Type definitions for shell-quote 1.6
// Project: https://github.com/substack/node-shell-quote
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

export function quote(args: string[]): string;
export function parse(
	cmd: string,
	env?: { [key: string]: string } | ((key: string) => string | object),
	opts?: { [key: string]: string }
): string[];

// Type definitions for shell-quote 1.6
// Project: https://github.com/substack/node-shell-quote
// Definitions by: Jason Cheatham <https://github.com/jason0x43>
//                 Cameron Diver <https://github.com/CameronDiver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

export type ParseEntry =
	| string
	| { op: string }
	| { op: 'glob'; pattern: string }
	| { comment: string };

export function quote(args: string[]): string;
export function parse(
	cmd: string,
	env?: { [key: string]: string } | ((key: string) => string | object),
	opts?: { [key: string]: string }
): ParseEntry[];

Fix parse function return in shell-quote
Fix parse function return in shell-quote

Signed-off-by: Cameron Diver <1d572acbfa68c7c6e541c7b840d6b622e5c0dc91@balena.io>
