import { WidgetApi } from '../types'; /** * The capability that needs to be requested in order to navigate to another room. */ export declare const WIDGET_CAPABILITY_NAVIGATE = "org.matrix.msc2931.navigate"; /** * Options for the {@link navigateToRoom} function. */ export type NavigateToRoomOptions = { /** * Optional, array of one or more homeserver domains to discover the room. */ via?: string[]; }; /** * Navigate the client to another matrix room. * * @remarks This requires the {@link WIDGET_CAPABILITY_NAVIGATE} capability. * * @param widgetApi - the {@link WidgetApi} instance. * @param roomId - the room ID. * @param opts - {@link NavigateToRoomOptions} */ export declare function navigateToRoom(widgetApi: WidgetApi, roomId: string, opts?: NavigateToRoomOptions): Promise;