import type { Ksefnik } from '@ksefnik/core'; import { z } from 'zod'; export declare const syncInvoicesSchema: z.ZodObject<{ dateFrom: z.ZodString; dateTo: z.ZodString; nip: z.ZodOptional; /** * `sales` = invoices issued by this company (Subject1 on KSeF side), * `cost` = invoices received by this company (Subject2). * Defaults to `cost` for backwards compatibility with the MVP. */ subject: z.ZodOptional>; /** * When provided, downloads the full FA(2)/FA(3) XML for each invoice and * saves it to `${saveDir}/${ksefReference}.xml`. Path must be absolute. * Creates the directory if it doesn't exist. */ saveDir: z.ZodOptional; }, "strip", z.ZodTypeAny, { dateFrom: string; dateTo: string; nip?: string | undefined; subject?: "sales" | "cost" | undefined; saveDir?: string | undefined; }, { dateFrom: string; dateTo: string; nip?: string | undefined; subject?: "sales" | "cost" | undefined; saveDir?: string | undefined; }>; export type SyncInvoicesInput = z.infer; export declare function syncInvoices(ksef: Ksefnik, input: SyncInvoicesInput): Promise<{ invoices: { id: string; invoiceNumber: string; sellerNIP: string; grossAmount: number; currency: "PLN"; issueDate: string; createdAt: string; description?: string | undefined; netAmount?: number | undefined; buyerNIP?: string | undefined; vatAmount?: number | undefined; salesDate?: string | undefined; dueDate?: string | undefined; ksefReference?: string | undefined; sellerName?: string | undefined; buyerName?: string | undefined; lineItems?: { lineNumber: number; description: string; netAmount: number; unit?: string | undefined; quantity?: number | undefined; unitNetPrice?: number | undefined; vatRate?: number | undefined; }[] | undefined; rawXml?: string | undefined; }[]; count: number; subject: "sales" | "cost"; savedFiles: string[] | undefined; savedCount: number | undefined; }>; //# sourceMappingURL=sync-invoices.d.ts.map