import type { MeritClient } from "../client/merit-client.js"; import type { RunSummary } from "./notify.js"; import type { DocsyncConfig } from "./types.js"; export interface RunOptions { from: Date; to: Date; config: DocsyncConfig; /** Include sales invoices in the audit (default: purchases only). */ includeSales?: boolean; /** Perform the resolving step (stage or rebook). Default false = report only. */ apply?: boolean; /** Delete+recreate matched invoices with the file instead of staging. */ rebook?: boolean; /** Allow rebook of paid invoices (drops payment link — caller re-books). */ force?: boolean; /** Staging folder for matched PDFs (used when not rebooking). */ stageDir: string; } export declare function runDocSync(client: MeritClient, opts: RunOptions): Promise;