import { BrandedString, ENSName, EthereumAddress } from '@streamr/utils'; export type StreamID = BrandedString<'StreamID'>; /** * Create an instance of `StreamID` from a given string stream id or path. * * Supported formats: * - full stream id format, e.g., '0x0000000000000000000000000000000000000000/foo/bar' or 'name.eth/foo/bar' * - path-only format, e.g. , '/foo/bar' * - legacy format, e.g., '7wa7APtlTq6EC5iTCBy6dw' * * If `streamIdOrPath` is not in path-only format, `domain` can be left undefined. */ export declare function toStreamID(streamIdOrPath: string, domain?: EthereumAddress | ENSName): StreamID | never; export declare class StreamIDUtils { static isPathOnlyFormat(streamIdOrPath: string): boolean; static getDomain(streamId: StreamID): EthereumAddress | ENSName | undefined; static getPath(streamId: StreamID): string | undefined; static getDomainAndPath(streamId: StreamID): [EthereumAddress | ENSName, string] | undefined; }