import { CustomField, CustomFieldFromYAML, CustomFieldInput, CustomFieldType, CustomFields } from '@atlassian/forge-graphql-types'; export declare const isCustomFieldYamlSelectField: (configCustomFieldType: CustomFieldType) => boolean; /** * Retrieves the optionId from the displayValue of a select field. * This is used when the config file has a select field with a displayValue but no value. * * @param configCustomField - The custom field from the config file. * @param filteredComponentCustomField - The custom field from the component. * @returns The optionId of the displayValue if it exists, otherwise null. */ export declare const getValueFromDisplayValue: (configCustomField: CustomFieldFromYAML, filteredComponentCustomField: CustomField) => string | string[] | null; /** * Builds the custom field input format to update a component based on chosen * custom fields from the config file. * * This function only filters out select-type custom fields have mismatching * values i.e. differing displayValue in config versus the available options * in the actual component custom field. * * @param configCustomFields - The custom fields from the config file. * @param componentCustomFields - The custom fields from the component. * @returns The custom fields in the format required to update a component. */ export declare const buildCustomFieldToUpdateFormat: (configCustomFields: CustomFieldFromYAML[], componentCustomFields: CustomFields) => CustomFieldInput[]; export declare const mappedCustomFieldsToYamlFormat: (customFieldInComponent: CustomField) => CustomFieldFromYAML;