34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
|
|
import { C as ContentEntity, M as MentionEntity, T as TagEntity, L as LinkEntity } from '../types-BRt4hd7A.cjs';
|
||
|
|
|
||
|
|
interface AngularTextToken {
|
||
|
|
kind: "text";
|
||
|
|
text: string;
|
||
|
|
start: number;
|
||
|
|
end: number;
|
||
|
|
}
|
||
|
|
interface AngularMentionToken {
|
||
|
|
kind: "mention";
|
||
|
|
entity: MentionEntity;
|
||
|
|
}
|
||
|
|
interface AngularTagToken {
|
||
|
|
kind: "tag";
|
||
|
|
entity: TagEntity;
|
||
|
|
}
|
||
|
|
interface AngularLinkToken {
|
||
|
|
kind: "link";
|
||
|
|
entity: LinkEntity;
|
||
|
|
}
|
||
|
|
type AngularContentToken = AngularTextToken | AngularMentionToken | AngularTagToken | AngularLinkToken;
|
||
|
|
interface AngularContentSnapshot {
|
||
|
|
text: string;
|
||
|
|
entities: ContentEntity[];
|
||
|
|
tokens: AngularContentToken[];
|
||
|
|
}
|
||
|
|
declare const buildAngularTagHref: (entity: TagEntity) => string;
|
||
|
|
declare const createAngularContentTokens: (inputText: string | null | undefined) => AngularContentToken[];
|
||
|
|
declare class AngularContentSuggestionsAdapter {
|
||
|
|
snapshot(inputText: string | null | undefined): AngularContentSnapshot;
|
||
|
|
}
|
||
|
|
|
||
|
|
export { type AngularContentSnapshot, AngularContentSuggestionsAdapter, type AngularContentToken, type AngularLinkToken, type AngularMentionToken, type AngularTagToken, type AngularTextToken, buildAngularTagHref, createAngularContentTokens };
|