export interface CostCode { id: number; codeId?: number; code: string; en?: string; fr?: string; istitle?: boolean; } export interface UseCostCodesOptions { /** Company ID for filtering cost codes */ companyId: number; /** Token getter function */ getToken: () => string | null; /** API request function */ fetchCostCodes: (companyId: number, token: string) => Promise; /** Whether to fetch on mount */ fetchOnMount?: boolean; /** Salary type filter ("daily" or "monthly") */ salaryType?: string; /** Custom filter function for cost codes */ filterFn?: (codes: CostCode[], salaryType: string) => CostCode[]; } export interface UseCostCodesResult { /** All fetched cost codes */ allCostCodes: CostCode[]; /** Filtered cost codes based on salary type */ costCodes: CostCode[]; /** Loading state */ loading: boolean; /** Error message if any */ error: string | null; /** Fetch/refresh cost codes */ fetchCodes: () => Promise; /** Find a cost code by ID */ findCostCode: (id: number | null) => CostCode | undefined; /** Get display text for a cost code */ getCostCodeDisplay: (id: number | null) => string; } /** * Hook for managing cost codes in spreadsheet components */ export declare function useCostCodes(options: UseCostCodesOptions): UseCostCodesResult; export default useCostCodes; //# sourceMappingURL=useCostCodes.d.ts.map