import type { Header } from './header.js'; import type { ErrorOr } from './types.js'; export interface CurlArguments { url: string; method: 'Get' | 'Post'; headers: Header[]; data?: string; } /** * Parse a curl command line arguments array to a JSON structure consumable by * the StepZen introspection service backend. * * @param {*} argv an array of curl arguments `[ * '-H', * 'api-key: my-secret-key', * '--header', * 'x-custom-options: my-custom-option-2', * 'https://test.stepzen.net/version', * '--dir', * '/my-app' * ]` * @returns {*} a structured object with the curl arguments */ export declare const parseCurlArgv: (argv: readonly string[]) => ErrorOr; //# sourceMappingURL=curl-parser.d.ts.map