import React from "react"; import IFrontController from "../../types/front-controller"; import { CustomAttributeObject } from "../../types/resources/custom-attribute"; import Pronunciation from "../../types/resources/pronunciation"; import { NameOwner } from "gpdb-api-client"; interface HookProps { owner: NameOwner; pronunciation: Pronunciation; controller?: IFrontController; saveCallback?: () => void; } interface HookReturn { loading: boolean; errors: any[]; data: CustomAttributeObject[]; saveCustomAttributes: () => Promise; exitEditMode: () => void; enterEditMode: () => void; inEdit: boolean; config: CustomAttributeObject[]; customAttrsPresent: boolean; customAttrsRef: React.MutableRefObject>; makeChanges: (value: boolean) => void; isUnsavedChanges: boolean; } declare const useCustomAttributes: ({ pronunciation, owner, saveCallback, controller, }: HookProps) => HookReturn; export default useCustomAttributes;