import { type Completion } from "@codemirror/autocomplete"; import { type IntlShape } from "react-intl"; import { type CatalogItem, type IAttributeDisplayFormMetadataObject, type ICatalogDateAttribute, type IDataSetMetadataObject, type IMetadataObjectBase, type ObjRef, type ObjectType } from "@gooddata/sdk-model"; import { type TextContentObject } from "../../model.js"; export interface ICompletionItem extends Completion { item: CatalogItem | ICatalogDateAttribute; } export declare function getItemTitle(item: CatalogItem): string | null; export declare function getOptions(intl: IntlShape, { items, search, canManage, canAnalyze, onCompletionSelected, includeTags, excludeTags, }: { items: CatalogItem[]; search?: string; canManage?: boolean; canAnalyze?: boolean; onCompletionSelected?: (completion: ICompletionItem) => void; includeTags?: string[]; excludeTags?: string[]; }): ICompletionItem[]; declare const SupportedReferenceTypes: readonly ["fact", "metric", "date", "attribute", "label", "dashboard", "visualization", "dataset"]; export declare function getReferenceRegex(): RegExp; export declare function getItems(intl: IntlShape, item: CatalogItem, { canManage, canAnalyze, onCompletionSelected, }: { canManage?: boolean; canAnalyze?: boolean; onCompletionSelected?: (completion: ICompletionItem) => void; }): ICompletionItem[]; export declare function objRefToTextContentObject(objRef: ObjRef, title?: string, forceType?: TextContentObject["type"]): TextContentObject | null; export declare function getCompletionItemId(data: ICompletionItem): string | null; export declare function getCatalogItemId(item: CatalogItem | ICatalogDateAttribute | IAttributeDisplayFormMetadataObject | IDataSetMetadataObject): string | null; export declare function getCatalogItemTitle(item: CatalogItem | ICatalogDateAttribute | IAttributeDisplayFormMetadataObject | IDataSetMetadataObject): string; export declare function getCatalogItemDescription(item: CatalogItem | ICatalogDateAttribute | IAttributeDisplayFormMetadataObject | IDataSetMetadataObject): string | undefined; export declare function getCatalogItemType(item: CatalogItem | ICatalogDateAttribute | IAttributeDisplayFormMetadataObject | IDataSetMetadataObject): (typeof SupportedReferenceTypes)[number] | null; export declare function matchTags(item: CatalogItem, includeTags?: string[], excludeTags?: string[]): boolean; export declare function getObjectTypeByRefType(type: TextContentObject["type"]): ObjectType; export type IMetadataObjectBaseWithId = IMetadataObjectBase & { id: string; }; export declare function findCatalogItemOrReference(references: TextContentObject[], catalogItems: CatalogItem[], id: string, type: string): IMetadataObjectBaseWithId | undefined; export {}; //# sourceMappingURL=utils.d.ts.map