export interface EntityRef {
    kind: string;
    id: string;
    label: string;
    icon?: string;
    promptText?: string;
    data?: Record<string, unknown>;
}
export type Segment = {
    type: 'text';
    text: string;
} | {
    type: 'entity';
    entity: EntityRef;
};
export type ComposerDoc = Segment[];
export declare function normalizeValue(value: string | ComposerDoc | null | undefined): ComposerDoc;
export declare function serializeToText(doc: ComposerDoc, opts?: {
    entity?: (e: EntityRef) => string;
}): string;
export declare function entitiesOf(doc: ComposerDoc): EntityRef[];
export declare function docIsEmpty(doc: ComposerDoc): boolean;
