import { z } from 'zod'; import { AppleClient } from './client.js'; /** Parses TSV or CSV (detected from the first line), honoring quotes, "" escapes and quoted newlines. */ export declare function parseDelimited(text: string): string[][]; /** Turns a TSV/CSV report into a preview the model can read without flooding the context. */ export declare function tableResult(text: string, args: { maxRows: number; outputPath?: string; overwrite?: boolean; }): { savedTo?: string | undefined; truncated?: boolean | undefined; columns: string[]; totalRows: number; rows: { [k: string]: string; }[]; }; /** Joins report segments: keeps the first header and drops it from later segments only where it repeats. */ export declare function mergeSegments(texts: string[]): string; export declare const reportTools: ({ name: string; description: string; schema: z.ZodObject<{ maxRows: z.ZodDefault; outputPath: z.ZodOptional; overwrite: z.ZodDefault; vendorNumber: z.ZodOptional; reportType: z.ZodDefault>; reportSubType: z.ZodDefault>; frequency: z.ZodDefault>; reportDate: z.ZodOptional; version: z.ZodOptional; }, "strip", z.ZodTypeAny, { reportType: "SALES" | "PRE_ORDER" | "NEWSSTAND" | "SUBSCRIPTION" | "SUBSCRIPTION_EVENT" | "SUBSCRIBER" | "SUBSCRIPTION_OFFER_CODE_REDEMPTION" | "INSTALLS" | "FIRST_ANNUAL" | "WIN_BACK_ELIGIBILITY"; reportSubType: "SUMMARY" | "DETAILED" | "SUMMARY_INSTALL_TYPE" | "SUMMARY_TERRITORY" | "SUMMARY_CHANNEL"; frequency: "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"; maxRows: number; overwrite: boolean; version?: string | undefined; vendorNumber?: string | undefined; reportDate?: string | undefined; outputPath?: string | undefined; }, { version?: string | undefined; vendorNumber?: string | undefined; reportType?: "SALES" | "PRE_ORDER" | "NEWSSTAND" | "SUBSCRIPTION" | "SUBSCRIPTION_EVENT" | "SUBSCRIBER" | "SUBSCRIPTION_OFFER_CODE_REDEMPTION" | "INSTALLS" | "FIRST_ANNUAL" | "WIN_BACK_ELIGIBILITY" | undefined; reportSubType?: "SUMMARY" | "DETAILED" | "SUMMARY_INSTALL_TYPE" | "SUMMARY_TERRITORY" | "SUMMARY_CHANNEL" | undefined; frequency?: "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY" | undefined; reportDate?: string | undefined; maxRows?: number | undefined; outputPath?: string | undefined; overwrite?: boolean | undefined; }>; handler: (client: AppleClient, args: any) => Promise<{ savedTo?: string | undefined; truncated?: boolean | undefined; columns: string[]; totalRows: number; rows: { [k: string]: string; }[]; }>; } | { name: string; description: string; schema: z.ZodObject<{ maxRows: z.ZodDefault; outputPath: z.ZodOptional; overwrite: z.ZodDefault; vendorNumber: z.ZodOptional; reportType: z.ZodDefault>; regionCode: z.ZodString; reportDate: z.ZodString; }, "strip", z.ZodTypeAny, { reportType: "FINANCIAL" | "FINANCE_DETAIL"; reportDate: string; maxRows: number; overwrite: boolean; regionCode: string; vendorNumber?: string | undefined; outputPath?: string | undefined; }, { reportDate: string; regionCode: string; vendorNumber?: string | undefined; reportType?: "FINANCIAL" | "FINANCE_DETAIL" | undefined; maxRows?: number | undefined; outputPath?: string | undefined; overwrite?: boolean | undefined; }>; handler: (client: AppleClient, args: any) => Promise<{ savedTo?: string | undefined; truncated?: boolean | undefined; columns: string[]; totalRows: number; rows: { [k: string]: string; }[]; }>; } | { name: string; description: string; schema: z.ZodObject<{ appId: z.ZodString; accessType: z.ZodOptional>; }, "strip", z.ZodTypeAny, { appId: string; accessType?: "ONGOING" | "ONE_TIME_SNAPSHOT" | undefined; }, { appId: string; accessType?: "ONGOING" | "ONE_TIME_SNAPSHOT" | undefined; }>; handler: (client: AppleClient, args: any) => Promise; } | { name: string; description: string; schema: z.ZodObject<{ appId: z.ZodString; accessType: z.ZodDefault>; }, "strip", z.ZodTypeAny, { appId: string; accessType: "ONGOING" | "ONE_TIME_SNAPSHOT"; }, { appId: string; accessType?: "ONGOING" | "ONE_TIME_SNAPSHOT" | undefined; }>; handler: (client: AppleClient, args: any) => Promise; } | { name: string; description: string; schema: z.ZodObject<{ requestId: z.ZodString; category: z.ZodOptional>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { requestId: string; name?: string | undefined; category?: "APP_USAGE" | "APP_STORE_ENGAGEMENT" | "COMMERCE" | "FRAMEWORK_USAGE" | "PERFORMANCE" | undefined; }, { requestId: string; name?: string | undefined; category?: "APP_USAGE" | "APP_STORE_ENGAGEMENT" | "COMMERCE" | "FRAMEWORK_USAGE" | "PERFORMANCE" | undefined; }>; handler: (client: AppleClient, args: any) => Promise; } | { name: string; description: string; schema: z.ZodObject<{ reportId: z.ZodString; granularity: z.ZodOptional>; processingDate: z.ZodOptional; }, "strip", z.ZodTypeAny, { reportId: string; granularity?: "DAILY" | "WEEKLY" | "MONTHLY" | undefined; processingDate?: string | undefined; }, { reportId: string; granularity?: "DAILY" | "WEEKLY" | "MONTHLY" | undefined; processingDate?: string | undefined; }>; handler: (client: AppleClient, args: any) => Promise; } | { name: string; description: string; schema: z.ZodObject<{ instanceId: z.ZodString; }, "strip", z.ZodTypeAny, { instanceId: string; }, { instanceId: string; }>; handler: (client: AppleClient, args: any) => Promise; })[]; //# sourceMappingURL=reports.d.ts.map