import { EntityType } from "@trackunit/iris-app-api"; import { CustomFieldDefinitionFragment, CustomFieldOwnerType, SystemOfMeasurement } from "./generated/graphql-api/graphql"; type SupportedEntityTypes = Extract; export type AllCustomFieldDefinition = CustomFieldDefinitionFragment; interface UseAllCustomFieldDefinitionsProps { entityType?: SupportedEntityTypes | null; filterQuery?: string; owners?: Array; systemOfMeasurement: SystemOfMeasurement | null; onlyEditable?: boolean; } interface UseAllCustomFieldDefinitionsReturnValue { loading: boolean; definitions: Array; appNameFromId: (appId?: string | null) => string | null | undefined; } /** * Custom hook to fetch all custom field definitions for a specified entity type. * * @param {UseAllCustomFieldDefinitionsProps} props - The properties for the custom fields query. * @param {SupportedEntityTypes} [props.entityType] - The type of the entity (e.g., 'ASSET' or 'SITE'). * @returns {UseAllCustomFieldDefinitionsReturnValue} An object containing a loading state and an array of custom field definitions. */ export declare const useAllCustomFieldDefinitions: ({ entityType, filterQuery, owners, systemOfMeasurement, onlyEditable, }: UseAllCustomFieldDefinitionsProps) => UseAllCustomFieldDefinitionsReturnValue; export {};