import { Currency } from "~/pages/project/projectSettings/shop/types/Currency"; import { Applies, DisabledPeriod, DiscountTypes, FetchDiscount, Minimum } from "./type/Discount"; import { DiscountMeasure } from "../types/Discount"; import { ReadyOrSubmitted as AddReadyOrSubmitted } from "./add/stateUtils"; import { DiscountValue } from "./type/DiscountReady"; import { Banknote } from "~/types/price/Banknote"; import * as Percent from "../../types/Percent"; import { Translator } from "~/locale/useTranslation"; export declare const handleChangeType: (state: T, payload: DiscountTypes) => T; export declare const handleChangeStarts: (t: Translator, state: T, payload: Date) => T; export declare const handleChangeEnds: (t: Translator, state: T, payload: Date) => T; export declare const getAppliesType: (applies: Applies) => "taxon" | "product" | undefined; export declare const fromFetchToDiscountValue: (t: Translator, discount: FetchDiscount, currency: Currency) => DiscountValue; export declare const getDiscountMeasure: (type: DiscountTypes) => DiscountMeasure; export declare const getTypeByMeasure: (value: DiscountMeasure) => "price" | "percent"; export declare const getTypeByMinimum: (value: Minimum) => "purchase" | "quantity" | undefined; export declare const getLimit: (value: DiscountMeasure) => boolean; export declare const getPreviewDiscount: ({ type, priceValue, percentValue, currency, }: { type: DiscountMeasure; priceValue?: Banknote | undefined; percentValue?: Percent.Percent | undefined; currency: Currency; }) => string; export declare const getAmountByType: (type: DiscountMeasure, priceValue: Banknote | undefined, percentValue: Percent.Percent | undefined) => number | undefined; export declare const getNewDate: () => Date; export declare const getStartsDisabledPeriod: () => DisabledPeriod; export declare const getEndsDisabledPeriod: (date: Date) => DisabledPeriod;