import { MakeOnlyOptionalKeys } from "./table_tools"; export declare namespace HttpTools { /**removes lines with comments from the code * with them, cannot decode */ export function RemoveJSONComments(json_code_text: string): string; type Attempt = LuaTuple<[boolean, ReturnType?]>; export function FetchJSONFromLink(link: string, remove_comments?: boolean, warn_on_error?: boolean): Attempt; /** * * @param domain domain url without / at the end ```https://lospec.com/``` * @param path path of the domain ```palette-list``` * @param default_parameters default values of the data that it can send * @returns async function thats returns data from the link and going to accept required data in form of a object and it's going to be encoded in url */ export function ConstructGetRequest(domain: string, path: string, default_parameters?: MakeOnlyOptionalKeys): (data: Data) => ReturnType<(data: Data) => Promise>; export {}; }