import { CPAAsset, CPAEntry, CPAMappings, CreateSourceMapParams, FieldType, GraphQLMappings, GraphQLResponse, SourceMapMetadata, WidgetId, WidgetNamespace } from './types.js'; export declare const createSourceMapMetadata: ({ entityId, entityType, space, environment, field, locale, editorInterface, fieldType, targetOrigin, platform, }: CreateSourceMapParams) => SourceMapMetadata; export declare const isBuiltinNamespace: (namespace: WidgetNamespace) => boolean; export declare const isSupportedWidget: (widgetId: WidgetId) => boolean; export declare const isNinetailedField: (field: string) => boolean; /** * Clones the incoming element into a new one, to prevent modification on the original object * Hint: It uses the structuredClone which is only available in modern browsers, * for older one it uses the JSON.parse(JSON.stringify) hack. */ export declare function clone | Array>(incoming: T): T; export declare const SUPPORTED_WIDGETS: WidgetId[]; export declare function encodeField(fieldType: FieldType, currentValue: any, hiddenStrings: SourceMapMetadata, target: GraphQLResponse | CPAEntry | CPAAsset, pointer: string, mappings: CPAMappings | GraphQLMappings, locale?: string): void;