import React from 'react';
import type { ComponentMap, FieldMap, MappedField } from '../../utilities/buildComponentMap/types';
export type IComponentMapContext = {
    componentMap: ComponentMap;
    getFieldMap: (args: {
        collectionSlug?: string;
        globalSlug?: string;
    }) => [] | FieldMap;
    getMappedFieldByPath: (args: {
        collectionSlug?: string;
        globalSlug?: string;
        path: string;
    }) => MappedField | undefined;
};
export declare const ComponentMapProvider: React.FC<{
    children: React.ReactNode;
    componentMap: ComponentMap;
}>;
export declare const useComponentMap: () => IComponentMapContext;
//# sourceMappingURL=index.d.ts.map