/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { IPublisher, ITopic } from "@fluidframework/server-services-core"; /** * @internal */ export interface IEvent { event: string; args: any[]; } /** * @internal */ export declare class TestTopic implements ITopic { events: Map; emit(event: string, ...args: any[]): void; getEvents(key: string): IEvent[] | undefined; } /** * @internal */ export declare class TestPublisher implements IPublisher { private readonly events; private topics; on(event: string, listener: (...args: any[]) => void): void; to(topic: string): TestTopic; close(): Promise; } //# sourceMappingURL=testPublisher.d.ts.map