import { Room, ContentHelpers } from "matrix-js-sdk/src/matrix";
import { Optional } from "matrix-events-sdk";
export declare const getTopic: (room?: Room) => Optional<ContentHelpers.TopicState>;
/**
 * Helper to retrieve the room topic for given room
 * @param room
 * @returns the raw text and an html parsion version of the room topic
 */
export declare function useTopic(room?: Room): Optional<ContentHelpers.TopicState>;
