import { TrendTimeseries } from '../../commonStateTypes/balanceTimeseries'; import { DataAvailable } from '../../commonStateTypes/dataAvailable'; import { Month } from '../../commonStateTypes/timePeriod'; import { TimeframeTick } from '../../commonStateTypes/timeframeTick'; import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport'; import { CustomerIncomeState } from '../../entity/customerIncome/customerIncomeTrendState'; import { Entity } from '../../entity/genericEntity/entity'; import { VendorExpenseState } from '../../entity/vendorExpense/vendorExpenseState'; import { RootState } from '../../rootStateTypes'; import { ZeniDate } from '../../zeniDayJS'; import { TrendState } from './trendState'; export interface TrendView extends SelectorView { dataAvailable?: DataAvailable; entity?: Entity; trendReport?: TrendTimeseries; trendsTimePeriod?: TimeframeTick; } /** * * @param rootState, * @param customerState * @param vendorState * @param trendState * @param entity * @returns The trend for this entity */ export declare const getTrendForEntity: (state: RootState) => TrendView; /** * * @param customerState * @param vendorState * @param trendState * @param entity * @returns The last quarter with transactions for this entity. If there arent any transactions * then this function will return the latest quarter */ export declare const getLatestTimeFrameWithTransactions: (customerState: CustomerIncomeState, vendorExpenseState: VendorExpenseState, trendState: TrendState, entity: Entity, timeFrame: "month" | "quarter") => TimeframeTick | undefined; export declare function getCurrentFiscalQuarterDateRange(fiscalYearStartMonth: Month, forDate?: ZeniDate): TimeframeTick;