import { type IdentifierRef, type ObjRef, type ObjectType } from "@gooddata/sdk-model"; /** * @internal */ export type ReferenceMap = Record; /** * The references the text points at, by the identifier each was written with. * * @internal */ export declare function collectReferences(content: string): ReferenceMap; /** * The references without those pointing at the given objects. The caller resolves the remaining ones * in a single execution, which fails as a whole if it asks for an object the user may not read. */ export declare function excludeReferences(references: ReferenceMap, excluded: ObjRef[]): ReferenceMap; /** * The text with every reference pointing at one of the given objects replaced by `replacement`. * The markup around a reference is left alone, so emphasis that held the reference now holds the * replacement. The result is stored as the widget's text, and thus the replacement is not localised. * * @internal */ export declare function replaceReferences(content: string, replaced: ObjRef[], replacement: string): string; export declare function createReference(parts: RegExpExecArray): { id: string; ref: IdentifierRef | null; }; //# sourceMappingURL=references.d.ts.map