mirror of https://github.com/zulip/zulip.git
31 lines
709 B
Plaintext
31 lines
709 B
Plaintext
/**
|
|
* @flow strict
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
declare export function encodeHashComponent(str: string): string;
|
|
|
|
declare export function decodeHashComponent(str: string): string;
|
|
|
|
declare export function stream_id_to_slug(
|
|
stream_id: number,
|
|
maybe_get_stream_name: (id: number) => ?string,
|
|
): string;
|
|
|
|
declare export function encode_stream_id(
|
|
stream_id: number,
|
|
maybe_get_stream_name: (id: number) => ?string,
|
|
): string;
|
|
|
|
declare export function by_stream_url(
|
|
stream_id: number,
|
|
maybe_get_stream_name: (id: number) => ?string,
|
|
): string;
|
|
|
|
declare export function by_stream_topic_url(
|
|
stream_id: number,
|
|
topic: string,
|
|
maybe_get_stream_name: (id: number) => ?string,
|
|
): string;
|