matrix-react-sdk
Version:
SDK for matrix.org using React
25 lines (24 loc) • 645 B
TypeScript
import { Room } from "matrix-js-sdk/src/matrix";
import { TagID } from "../models";
import { OrderingAlgorithm } from "./list-ordering/OrderingAlgorithm";
export declare enum SortAlgorithm {
Manual = "MANUAL",
Alphabetic = "ALPHABETIC",
Recent = "RECENT"
}
export declare enum ListAlgorithm {
Importance = "IMPORTANCE",
Natural = "NATURAL"
}
export interface ITagSortingMap {
[tagId: TagID]: SortAlgorithm;
}
export interface IListOrderingMap {
[tagId: TagID]: ListAlgorithm;
}
export interface IOrderingAlgorithmMap {
[tagId: TagID]: OrderingAlgorithm;
}
export interface ITagMap {
[tagId: TagID]: Room[];
}