import React, { FC, ReactNode } from 'react';
import { CollectionRecord } from './CollectionRecord';
export declare const CollectionRecordContext: React.Context<CollectionRecord<any, any>>;
export interface CollectionRecordProviderProps<DataType = {}, ParentDataType = {}> {
    children?: ReactNode;
    isNew?: boolean;
    record?: CollectionRecord<DataType, ParentDataType> | DataType;
    parentRecord?: CollectionRecord<ParentDataType> | DataType;
}
export declare const CollectionRecordProvider: FC<CollectionRecordProviderProps>;
export declare function useCollectionRecord<DataType = {}, ParentDataType = {}>(): CollectionRecord<DataType, ParentDataType>;
export declare function useCollectionRecordData<DataType = any>(): DataType;
export declare function useCollectionParentRecord<ParentDataType>(): CollectionRecord<ParentDataType>;
export declare function useCollectionParentRecordData<ParentDataType>(): ParentDataType;
