declare module 'quoted-string-space-split/index' { import splitSpacesExcludeQuotes from 'quoted-string-space-split/quoted-string-space-split'; export * from 'quoted-string-space-split/quoted-string-space-split'; export default splitSpacesExcludeQuotes; } declare module 'quoted-string-space-split/quoted-string-space-split' { export type ParsedValue = { /** * The type of the parsed group. * * - `plain` : The parsed group was split by spaces, but wasn't surrounded by quotes; * - `single` : The parsed group was split by spaces, and was surrounded by single quotes (`'`); * - `double` : The parsed group was split by spaces, and was surrounded by double quotes (`"`); */ type: 'plain' | 'single' | 'double'; /** * The text that this group contains (may contain spaces if the group was surrounded by quotes). */ value: string; }; /** * This function splits spaces and creates an array of object defining both the type of group (based on quotes) and the value (text) of the group. * @param string The string to split. * @see splitSpacesExcludeQuotes */ export function splitSpacesExcludeQuotesDetailed(string: string): ParsedValue[]; /** * This function splits spaces and creates an array of strings, like if you were to use `String.split(...)`, but without splitting the spaces in between quotes. * @param string The string to split. * @see splitSpacesExcludeQuotesDetailed */ export function splitSpacesExcludeQuotes(string: string): string[]; export default splitSpacesExcludeQuotes; } declare module 'quoted-string-space-split' { import main = require('quoted-string-space-split/index'); export = main; }