import { DateRange } from "@cocalc/util/upgrades/shopping";
import { LicenseTypeInForms } from "./add-box";
export declare function getType(item: any): LicenseTypeInForms;
export declare function loadDateRange(range?: DateRange): DateRange;
/**
 * use serverTime to fix the users exact time and return an object with these properties:
 * - offset: difference in milliseconds between server time and user time
 * - timezone: the user's timezone
 * - serverTime: the Date object of serverTime
 * - userTime: the Date object of userTime
 * - function toServerTime(date): converts a Date object from the user's time to the server time
 *
 * @param serverTime -- milliseconds since epoch from the server
 */
export declare function useTimeFixer(): {
    offset: number;
    timezone: string;
    serverTimeDate: Date;
    toServerTime: (date: Date) => Date;
};
