import { DateRange } from "@cocalc/util/upgrades/shopping";
import { NextRouter } from "next/router";
export declare function encodeRange(vals: DateRange): string;
export declare const ALL_FIELDS: Set<string>;
export declare function encodeFormValues(router: NextRouter, vals: any, type: "regular" | "boost" | "dedicated"): void;
/** a query looks like this:
 * user=academic&period=monthly&run_limit=1&member=true&uptime=short&cpu=1&ram=2&disk=3
 *
 * NOTE: the support for dedicated disk & vm does not work. the form is too complicated, not no need to support this yet.
 */
export declare function decodeFormValues(router: NextRouter, type: "regular" | "boost" | "dedicated"): {
    [key: string]: string | number | boolean;
};
