@towns-protocol/sdk
Version:
For more details, visit the following resources:
25 lines • 1.12 kB
TypeScript
import { StreamRpcClient } from './makeStreamRpcClient';
import { UnpackEnvelopeOpts } from './sign';
import { StreamStateView } from './streamStateView';
import { StreamsView } from './views/streamsView';
export declare class UnauthenticatedClient {
readonly rpcClient: StreamRpcClient;
private readonly logCall;
private readonly logEmitFromClient;
private readonly logError;
private readonly unpackEnvelopeOpts;
private readonly userId;
private getScrollbackRequests;
constructor(rpcClient: StreamRpcClient, logNamespaceFilter?: string, opts?: UnpackEnvelopeOpts);
userWithAddressExists(address: Uint8Array): Promise<boolean>;
userExists(userId: string): Promise<boolean>;
streamExists(streamId: string | Uint8Array): Promise<boolean>;
getStream(streamId: string | Uint8Array, streamsView?: StreamsView): Promise<StreamStateView>;
scrollback(streamView: StreamStateView): Promise<{
terminus: boolean;
fromInclusiveMiniblockNum: bigint;
}>;
private getMiniblocks;
private isWithin;
}
//# sourceMappingURL=unauthenticatedClient.d.ts.map