import type { PostgrestError } from '@supabase/supabase-js'; import type { SetOptional } from 'type-fest'; import React from 'react'; import { type Current } from '../features'; import { contractQuery, employeeQuery } from './dataHelpers'; export declare const validateCurrent: (value?: Current, entities?: EmployeeEntity[]) => string | null; export type Employee = Awaited>['data']; export type Contract = Awaited>['data']; export type EmployeeEntity = NonNullable['join_entity_employees'][number]['entities']; export type EmployeeContextProps = { contract: NonNullable[0] | null; current: Current; employee: Employee | null; entities: EmployeeEntity[] | null; error: null | PostgrestError; isFetching: boolean; isLoading: boolean; setCurrent: (value?: Current) => void; }; export type DataProviderEmployeeContext = SetOptional; export declare const EmployeeContext: React.Context; export interface EmployeeProviderProps { } export declare const EmployeeProvider: React.FC>; //# sourceMappingURL=EmployeeContext.d.ts.map