import { z } from 'zod'; import { AppStoreConnectClient } from '../client.js'; import { AppStoreConnectAuth } from '../auth.js'; export declare const getSalesReportSchema: z.ZodObject<{ frequency: z.ZodEnum<["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]>; reportDate: z.ZodString; reportType: z.ZodDefault>>; reportSubType: z.ZodDefault>>; vendorNumber: z.ZodOptional; }, "strip", z.ZodTypeAny, { frequency: "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; reportDate: string; reportType: "SALES" | "PRE_ORDER" | "NEWSSTAND" | "SUBSCRIPTION" | "SUBSCRIPTION_EVENT" | "SUBSCRIBER"; reportSubType: "SUMMARY" | "DETAILED" | "SUMMARY_INSTALL_TYPE" | "SUMMARY_TERRITORY" | "SUMMARY_CHANNEL"; vendorNumber?: string | undefined; }, { frequency: "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; reportDate: string; reportType?: "SALES" | "PRE_ORDER" | "NEWSSTAND" | "SUBSCRIPTION" | "SUBSCRIPTION_EVENT" | "SUBSCRIBER" | undefined; reportSubType?: "SUMMARY" | "DETAILED" | "SUMMARY_INSTALL_TYPE" | "SUMMARY_TERRITORY" | "SUMMARY_CHANNEL" | undefined; vendorNumber?: string | undefined; }>; export declare const getFinanceReportSchema: z.ZodObject<{ regionCode: z.ZodString; reportDate: z.ZodString; reportType: z.ZodDefault>>; vendorNumber: z.ZodOptional; }, "strip", z.ZodTypeAny, { reportDate: string; reportType: "FINANCIAL" | "FINANCE_DETAIL"; regionCode: string; vendorNumber?: string | undefined; }, { reportDate: string; regionCode: string; reportType?: "FINANCIAL" | "FINANCE_DETAIL" | undefined; vendorNumber?: string | undefined; }>; export declare const REGION_CODES: { US: string; CA: string; MX: string; JP: string; AU: string; NZ: string; GB: string; Z1: string; CH: string; NO: string; DK: string; SE: string; CN: string; SG: string; HK: string; TW: string; KR: string; IN: string; RU: string; BR: string; ZA: string; AE: string; SA: string; IL: string; TR: string; WW: string; }; export declare function getSalesReport(client: AppStoreConnectClient, auth: AppStoreConnectAuth, input: z.infer): Promise<{ report: string; parsed?: SalesReportRow[]; }>; export declare function getFinanceReport(client: AppStoreConnectClient, auth: AppStoreConnectAuth, input: z.infer): Promise<{ report: string; parsed?: FinanceReportRow[]; }>; interface SalesReportRow { provider: string; providerCountry: string; sku: string; developer: string; title: string; version: string; productTypeIdentifier: string; units: number; developerProceeds: number; beginDate: string; endDate: string; customerCurrency: string; countryCode: string; currencyOfProceeds: string; appleIdentifier: string; customerPrice: number; promoCode: string; parentIdentifier: string; subscription: string; period: string; category: string; cmb: string; device: string; supportedPlatforms: string; proceedsReason: string; preservedPricing: string; client: string; orderType: string; } interface FinanceReportRow { startDate: string; endDate: string; uccBegin: string; uccEnd: string; country: string; appleTaxWithholding?: number; taxOnProceeds?: number; exchangeRate?: number; proceeds?: number; partnershare?: number; [key: string]: unknown; } export declare function summarizeSalesReport(rows: SalesReportRow[]): { totalUnits: number; totalProceeds: number; byProduct: Record; byCountry: Record; byDevice: Record; byProductType: Record; }; export declare const salesTools: ({ name: string; description: string; inputSchema: { type: "object"; properties: { frequency: { type: string; description: string; enum: string[]; }; reportDate: { type: string; description: string; }; reportType: { type: string; description: string; enum: string[]; default: string; }; reportSubType: { type: string; description: string; enum: string[]; default: string; }; vendorNumber: { type: string; description: string; }; regionCode?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: "object"; properties: { regionCode: { type: string; description: string; }; reportDate: { type: string; description: string; }; reportType: { type: string; description: string; enum: string[]; default: string; }; vendorNumber: { type: string; description: string; }; frequency?: undefined; reportSubType?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: "object"; properties: { frequency?: undefined; reportDate?: undefined; reportType?: undefined; reportSubType?: undefined; vendorNumber?: undefined; regionCode?: undefined; }; required?: undefined; }; })[]; export {}; //# sourceMappingURL=sales.d.ts.map