import { ExtractRecordPaths } from '../types'; /** * A hook that gets the value of a field of the current record. * @param params The hook parameters * @param params.source The field source * @param params.record The record to use. Uses the record from the RecordContext if not provided * @param params.defaultValue The value to return when the field value is empty * @returns The field value * * @example * const MyField = (props: { source: string }) => { * const value = useFieldValue(props); * return {value}; * } */ export declare const useFieldValue: = Record>(params: UseFieldValueOptions) => any; export interface UseFieldValueOptions = Record> { defaultValue?: any; source: ExtractRecordPaths; record?: RecordType; } //# sourceMappingURL=useFieldValue.d.ts.map