import type { Database } from "@prodobit/database"; export declare class LedgerService { private db; constructor(db: Database); /** * Get general ledger for an account */ getAccountLedger(tenantId: string, accountId: string, startDate: string, endDate: string): Promise<{ accountId: string; accountCode: string; accountName: string; accountType: string; openingBalance: number; entries: { entryId: string; entryNumber: string; entryDate: string; description: string; reference: string | null; debit: number; credit: number; balance: number; }[]; closingBalance: number; totalDebits: number; totalCredits: number; }>; /** * Get trial balance */ getTrialBalance(tenantId: string, asOfDate: string): Promise<{ period: string; asOfDate: string; entries: { accountId: string; accountCode: string; accountName: string; accountType: string; level: number; isGroup: boolean; debitBalance: number; creditBalance: number; }[]; totalDebits: number; totalCredits: number; isBalanced: boolean; }>; /** * Get income statement */ getIncomeStatement(tenantId: string, startDate: string, endDate: string): Promise<{ startDate: string; endDate: string; revenue: any[]; costOfGoodsSold: any[]; grossProfit: number; operatingExpenses: any[]; operatingIncome: number; otherIncomeExpenses: any[]; incomeBeforeTax: number; taxExpense: number; netIncome: number; }>; /** * Get balance sheet */ getBalanceSheet(tenantId: string, asOfDate: string): Promise<{ asOfDate: string; assets: { currentAssets: any[]; totalCurrentAssets: number; fixedAssets: any[]; totalFixedAssets: number; otherAssets: any[]; totalOtherAssets: number; totalAssets: number; }; liabilities: { currentLiabilities: any[]; totalCurrentLiabilities: number; longTermLiabilities: any[]; totalLongTermLiabilities: number; totalLiabilities: number; }; equity: { items: any[]; totalEquity: number; }; totalLiabilitiesAndEquity: number; }>; } //# sourceMappingURL=LedgerService.d.ts.map