curlconverter
Version:
convert curl commands to Python, JavaScript, Go, PHP and more
8 lines (7 loc) • 539 B
TypeScript
import type { Request, Warnings } from "../../parse.js";
import { type JSImports } from "./javascript.js";
export declare const supportedArgs: Set<string>;
export declare function getData(request: Request, isNode: boolean, imports: JSImports): [string, string | null];
export declare function _toNodeKy(requests: Request[], warnings?: Warnings): string;
export declare function toNodeKyWarn(curlCommand: string | string[], warnings?: Warnings): [string, Warnings];
export declare function toNodeKy(curlCommand: string | string[]): string;