import type { FinancialRegisterPageProps, FinancialTransactionFormValues } from "./FinancialRegister.types"; /** * Hook for FinancialRegisterPage. * Uses accounts and categories provided via props (no mocks). * Returns { data, fns } as per project conventions. */ declare const useFinancialRegister: (props: FinancialRegisterPageProps) => { data: { formValues: { value: number; description: string; isRecurring: boolean; paymentMethod: "dinheiro" | "pix" | "cartao_debito" | "cartao_credito" | "transferencia" | "boleto" | "cheque"; settlementStatus: "PROJECTED" | "CONSOLIDATED"; categoryId: string; subcategoryId: string; hasDueDate: boolean; accountId: string; isSharedWithMembers: boolean; id?: string | undefined; dueDate?: string | undefined; shareReason?: string | null | undefined; transactionType?: "entrada" | "saida" | undefined; installments?: number | undefined; observation?: string | undefined; correctionReason?: string | null | undefined; inventoryItemId?: string | undefined; purchasedQuantity?: number | undefined; }; errors: Partial>; isFormValid: boolean; isLoading: boolean; pageTitle: string; transactionType: "entrada" | "saida" | undefined; filteredCategories: { id: string; name: string; subcategories: { id: string; name: string; description?: string | null | undefined; }[]; type?: string | undefined; flow?: string | undefined; description?: string | null | undefined; }[]; filteredSubcategories: { id: string; name: string; description?: string | null | undefined; }[]; selectedCategory: { id: string; name: string; subcategories: { id: string; name: string; description?: string | null | undefined; }[]; type?: string | undefined; flow?: string | undefined; description?: string | null | undefined; } | null; selectedSubcategory: { id: string; name: string; description?: string | null | undefined; } | null; accounts: { id: string; name: string; createdAt?: string | undefined; updatedAt?: string | undefined; agency?: string | null | undefined; account?: string | null | undefined; pixKeyType?: string | null | undefined; pixKey?: string | null | undefined; initialBalance?: string | undefined; currentBalance?: string | undefined; bankAccountOption?: { name: string; } | null | undefined; accountType?: string | undefined; }[]; categories: { id: string; name: string; subcategories: { id: string; name: string; description?: string | null | undefined; }[]; type?: string | undefined; flow?: string | undefined; description?: string | null | undefined; }[]; inventoryItems: { id: string; name: string; unit?: string | undefined; }[]; }; fns: { handleInputChange: (field: keyof FinancialTransactionFormValues, value: string | number | boolean) => void; handleValueChange: (value: string) => void; handleRecurringToggle: (isRecurring: boolean) => void; handleDueDateToggle: (hasDueDate: boolean) => void; handleTransactionTypeChange: (newType: "entrada" | "saida") => void; handleShareToggle: (checked: boolean) => void; handleSave: () => Promise; handleCancel: () => void; formatCurrency: (value: number) => string; }; }; export default useFinancialRegister;