/// import { ComboBoxOption } from '@c-fo/vibes'; import { BaseResource } from '../../../../../pages/types'; import { ApiComboBoxOptionsResponse } from '../../../../../templates/RecordPage/types/mainSections/sectionKeyValueField'; import { GetNestedValue, NestedKeyOf } from '../../../../../types'; import type { ApiMetaData } from '../../../../../areas/EXPERIMENTAL_ListControl/filter/hooks/useApiSingleComboBox'; export declare const DEFAULT_FETCH_ERROR_MESSAGE: "データの取得に失敗しました"; export declare const useKeyValueApiComboBox: = NestedKeyOf, V extends GetNestedValue = GetNestedValue>({ value, fetchItems, fetchErrorMessage, }: { value?: V | undefined; fetchItems: (params: { name: string; selectedId?: V | undefined; page: number; }) => Promise>; fetchErrorMessage?: string | undefined; }) => { isLoading: boolean; options: I[]; meta: ApiMetaData; handleFetchItems: ({ name, page, selectedId, }: { name: string; page: number; selectedId?: V | undefined; }) => Promise; handleOnFocus: () => void; handleAddOptions: (newOptions: I[]) => void; handleSetOptions: import("react").Dispatch>; };