import QuickBooks from "node-quickbooks"; import { CachedAccount, AccountCache, ClassCache, DepartmentCache, VendorCache, EmployeeCache } from "../types/index.js"; export declare function clearLookupCache(): void; export declare function getDepartmentCache(client: QuickBooks): Promise; export declare function getClassCache(client: QuickBooks): Promise; export declare function getAccountCache(client: QuickBooks): Promise; export declare function resolveAccount(client: QuickBooks, account: string): Promise; export declare function getVendorCache(client: QuickBooks): Promise; export declare function getEmployeeCache(client: QuickBooks): Promise; export declare function resolveVendor(client: QuickBooks, nameOrId: string): Promise<{ value: string; name: string; }>; export declare function resolveItem(client: QuickBooks, nameOrId: string): Promise<{ value: string; name: string; }>; export declare function resolveDepartmentId(client: QuickBooks, department: string): Promise; export declare function resolveCustomer(client: QuickBooks, nameOrId: string): Promise<{ value: string; name: string; }>; /** * An account plus every account nested beneath it, by Id. * * Report-based tools (the General Ledger behind account_period_summary) roll * sub-account activity up into the parent, while entity-based reads match a * single AccountRef. Callers that want to agree with the reports need the whole * subtree. QBO nests arbitrarily deep, so this walks rather than checking * ParentRef one level down. */ export declare function collectAccountTree(cache: AccountCache, rootId: string): Set; //# sourceMappingURL=cache.d.ts.map