import { type Database } from "./database.js"; export declare const SUBSCRIPTION_PLAN_MAINTENANCE_BATCH_SIZE = 50; /** Advisory IDs only. The caller must recheck under the organization fence. */ export declare function listSubscriptionPlanMaintenanceAccounts(db: Database, limit?: number): Promise; export declare function subscriptionPlanMaintenanceDue(db: Database): Promise; /** * One bounded DB-only pass. Organization membership fence precedes the credit * advisory lock; never lock the account row. Independent account failures roll * back that account, not successful neighbors. Multiple workers converge on the * foundation's immutable month/expiry receipts, with no distributed job claim. * The worker owns the default-off deployment gate; these helpers do not read env. */ export declare function maintainSubscriptionPlans(db: Database, input?: { batchSize?: number; onError?: (error: unknown, accountId: string) => void; }): Promise<{ examinedAccounts: number; expiredPeriods: number; enrolledFreeAccounts: number; grantedFreePeriods: number; failedAccounts: number; }>;