import { ZeniAPIResponse } from '../../../responsePayload'; import { InvoicingChurnDataPoint, InvoicingDashboardSummary, InvoicingMRRDataPoint, InvoicingOverviewKPIs, InvoicingPlanRevenuePoint, InvoicingRevenueDataPoint } from './invoicingOverviewState'; export interface InvoicingOverviewKPIsPayload { active_customers: number; active_subscriptions: number; arr: number; churn_rate: number; mrr: number; ltv?: number; net_revenue_retention?: number; } export interface InvoicingRevenueDataPointPayload { month: string; revenue: number; arr?: number; } export interface InvoicingMRRDataPointPayload { month: string; mrr: number; churned?: number; expansion?: number; month_num?: number; net?: number; new?: number; start_mrr?: number; year?: number; } export interface InvoicingChurnDataPointPayload { month: string; rate: number; churned?: number; subscribers?: number; } export interface InvoicingPlanRevenuePointPayload { mrr: number; pct: number; plan: string; } export interface InvoicingDashboardSummaryPayload { customer_movement: { churned: number; net_change: number; new: number; paused: number; reactivated: number; resumed: number; total_active: number; total_active_value: number; }; failed_payments: { amount: number; count: number; }; grr: { churn: number; contraction: number; grr: number; retained_arr: number; starting_arr: number; }; mrr_movement: { churned: number; expansions: number; net_change: number; new_subscriptions: number; }; nrr: { churn: number; contraction: number; ending_arr: number; expansion_arr: number; nrr: number; starting_arr: number; }; outstanding: number; past_due_invoices: { amount: number; count: number; }; upcoming_invoices: { amount: number; count: number; }; /** Period-over-period change in outstanding balance, e.g. -6.7. */ outstanding_change_pct?: number; } export type InvoicingOverviewKPIsResponse = ZeniAPIResponse; export type InvoicingOverviewRevenueResponse = ZeniAPIResponse; export type InvoicingOverviewMRRResponse = ZeniAPIResponse; export type InvoicingOverviewChurnResponse = ZeniAPIResponse; export type InvoicingOverviewPlanRevenueResponse = ZeniAPIResponse; export type InvoicingOverviewDashboardSummaryResponse = ZeniAPIResponse; export declare const mapInvoicingOverviewKPIsPayloadToState: (payload: InvoicingOverviewKPIsPayload) => InvoicingOverviewKPIs; export declare const mapInvoicingRevenueDataPointPayloadToState: (payload: InvoicingRevenueDataPointPayload) => InvoicingRevenueDataPoint; export declare const mapInvoicingMRRDataPointPayloadToState: (payload: InvoicingMRRDataPointPayload) => InvoicingMRRDataPoint; export declare const mapInvoicingChurnDataPointPayloadToState: (payload: InvoicingChurnDataPointPayload) => InvoicingChurnDataPoint; export declare const mapInvoicingPlanRevenuePointPayloadToState: (payload: InvoicingPlanRevenuePointPayload) => InvoicingPlanRevenuePoint; export declare const mapInvoicingDashboardSummaryPayloadToState: (payload: InvoicingDashboardSummaryPayload) => InvoicingDashboardSummary;