import { type ComponentProps } from 'react'; import type { Fields } from "./index.js"; import type { ListMeta } from "../../types/index.js"; import { type ApolloError } from "../apollo.js"; type CreateItemHookResult = { state: 'editing' | 'loading' | 'created'; shouldPreventNavigation: boolean; error?: ApolloError; props: ComponentProps; create: () => Promise<{ id: string; label: string | null; } | undefined>; }; export declare function useCreateItem(list: ListMeta): CreateItemHookResult; type BuildItemHookResult = { state: 'editing'; error?: ApolloError; props: ComponentProps; build: () => Promise | undefined>; }; export declare function useBuildItem(list: ListMeta, fieldKeys?: string[]): BuildItemHookResult; export {}; //# sourceMappingURL=useCreateItem.d.ts.map