import type { EnterpriseState, ProvisionedGrant } from "./types.js"; export type BulkProvisionResult = { ok: boolean; reason?: string; total: number; provisioned: number; skipped: number; errors: number; /** Dry-run plan lines: "email → provider". */ planned?: string[]; /** New/updated grant rows for the store (empty on dry-run). */ grants: ProvisionedGrant[]; }; /** * Provision email/calendar grants for the roster (or an explicit email list). * Idempotent: emails with an existing active grant are skipped. Per-user * failures are recorded as grant rows with status "error" + the response body. */ export declare function bulkProvisionNylas(state: EnterpriseState, opts?: { emails?: string[]; dryRun?: boolean; }): Promise;