export declare function findByCompany(companyId: string): any; export declare function findById(id: string): any; export declare function findInvoices(companyId: string): any; export declare function findInvoiceByAmanpay(transactionId: string): any; export declare function findInvoiceByPaypal(captureId: string): any; export declare function findInvoiceByPaypalForCompany(paypalOrderId: string, companyId: string): any; export declare function findInvoiceById(id: string): any; export declare function findOrCreateSubscription(companyId: string, plan: string, billingPeriod: string, currency: string): Promise; export declare function activateSubscription(id: string, periodEnd: Date): any; export declare function startTrial(companyId: string, plan: string, billingPeriod: string, currency: string, trialEndAt: Date): any; export declare function setPaymentPending(id: string): any; export declare function setPastDue(id: string): any; export declare function setSuspended(id: string): any; export declare function setExpired(id: string): any; export declare function setCancelled(id: string, immediate: boolean): any; export declare function setCancelAtPeriodEnd(companyId: string, value: boolean): any; export declare function incrementRetryCount(id: string): any; export declare function updatePlan(companyId: string, data: { plan: any; billingPeriod: any; currency: string; }): any; export declare function createInvoice(data: { companyId: string; subscriptionId: string; amount: number; currency: string; paymentProvider: string; amanpayTransactionId?: string | null; paypalCaptureId?: string | null; dueAt?: Date | null; }): any; export declare function markInvoicePaid(id: string): any; export declare function markInvoiceFailed(id: string): any; export declare function markInvoiceVoided(id: string): any; export declare function updateInvoicePaypal(id: string, captureId: string): any; export declare function createPaymentAttempt(data: { invoiceId: string; subscriptionId: string; providerPaymentId?: string | null; status: string; failureCode?: string | null; failureMessage?: string | null; }): any; export declare function getPaymentAttempts(invoiceId: string): any; export declare function createEvent(data: { subscriptionId: string; companyId: string; eventType: string; source?: string; payload?: object; }): any; export declare function getEvents(subscriptionId: string): any; export declare function findPaymentPendingTimedOut(cutoffDate: Date): any; export declare function findPastDueTimedOut(cutoffDate: Date): any; export declare function findSuspendedTimedOut(cutoffDate: Date): any; export declare function findTrialsEndedWithoutConversion(): any; export declare function findSubscriptionsToExpireAtPeriodEnd(): any; //# sourceMappingURL=subscription.repo.d.ts.map