import React from 'react'; export type BuilderContextType = { data: Partial; add: (slice: Partial) => void; set: (slice: Partial) => void; clear: () => void; }; /** * Creates a Provider and context hook for a given data type * that builds a structure from slices of the provided data type * * @returns A Provider and a context hook */ declare const withBuilder: () => { useBuilderContext: () => BuilderContextType; Provider: React.FC | undefined; }>>; }; export default withBuilder;