UNPKG

curlconverter

Version:

convert curl commands to Python, JavaScript, Go, PHP and more

11 lines (10 loc) 862 B
import { Word } from "../../shell/Word.js"; import type { Request, Warnings } from "../../parse.js"; import type { FormParam } from "../../curl/form.js"; import { type JSImports } from "./javascript.js"; export declare const supportedArgs: Set<string>; export declare function getDataString(request: Request, contentType: string | null | undefined, exactContentType: Word | null | undefined, imports: JSImports): [Word | null | undefined, string | null, string | null]; export declare function getFormString(multipartUploads: FormParam[], imports: JSImports): string; export declare function _toNodeSuperAgent(requests: Request[], warnings?: Warnings): string; export declare function toNodeSuperAgentWarn(curlCommand: string | string[], warnings?: Warnings): [string, Warnings]; export declare function toNodeSuperAgent(curlCommand: string | string[]): string;