UNPKG

curlconverter

Version:

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

16 lines (15 loc) 1.19 kB
import { Word } from "../../shell/Word.js"; import type { Request, Warnings } from "../../parse.js"; import type { Query } from "../../Query.js"; import type { FormParam } from "../../curl/form.js"; import { type JSImports } from "./javascript.js"; export declare const supportedArgs: Set<string>; export declare function dedent(s: string): string; export declare function indent(s: string, indent?: number): string; export declare function commentOut(s: string, indent?: number): string; export declare function serializeQuery(query: Query, imports: JSImports): [string, boolean]; export declare function getDataString(data: Word, contentType: string | null | undefined, exactContentType: Word | null | undefined, imports: JSImports): [Word | null | undefined, string, string | null, boolean]; export declare function getFormString(multipartUploads: FormParam[], imports: JSImports): string; export declare function _toJavaScriptJquery(requests: Request[], warnings?: Warnings): string; export declare function toJavaScriptJqueryWarn(curlCommand: string | string[], warnings?: Warnings): [string, Warnings]; export declare function toJavaScriptJquery(curlCommand: string | string[]): string;