UNPKG

curlconverter

Version:

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

12 lines (11 loc) 887 B
import { Word } from "../shell/Word.js"; import type { Request, Warnings } from "../parse.js"; export declare function escapeStr(s: string, quote: '"' | "'"): string; export declare function repr(w: Word): string; export declare const supportedArgs: Set<string>; export declare function _toPowershellWebRequest(requests: Request[], warnings?: Warnings): string; export declare function toPowershellWebRequestWarn(curlCommand: string | string[], warnings?: Warnings): [string, Warnings]; export declare function toPowershellWebRequest(curlCommand: string | string[]): string; export declare function _toPowershellRestMethod(requests: Request[], warnings?: Warnings): string; export declare function toPowershellRestMethodWarn(curlCommand: string | string[], warnings?: Warnings): [string, Warnings]; export declare function toPowershellRestMethod(curlCommand: string | string[]): string;