UNPKG

curlconverter

Version:

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

15 lines (14 loc) 987 B
import { Word } from "../../shell/Word.js"; import type { Request, Warnings } from "../../parse.js"; import { type QueryDict } from "../../Query.js"; export declare const supportedArgs: Set<string>; export declare function reprStr(s: string, quote?: "'" | '"' | "{}"): string; export declare function repr(w: Word): string; export declare function reprSymbol(s: Word): string; export declare function objToRuby(obj: Word | Word[] | string | number | boolean | object | null, indent?: number): string; export declare function queryToRubyDict(q: QueryDict, indent?: number): string; export declare function getDataString(request: Request): [string, boolean]; export declare function getFilesString(request: Request): string; export declare function _toRuby(requests: Request[], warnings?: Warnings): string; export declare function toRubyWarn(curlCommand: string | string[], warnings?: Warnings): [string, Warnings]; export declare function toRuby(curlCommand: string | string[]): string;