import { EventClient } from './plugin.cjs'; import { AllDevtoolsEvents, TanStackDevtoolsEvent } from './types.cjs'; /** Maps a type to its public members only (drops `#private`/`private`). */ type PublicSurface = { [K in keyof T]: T[K]; }; /** * A no-op implementation of `EventClient` with an identical public API. * * The package root export resolves to this class outside of development (see * `index.ts`), so production bundlers can tree-shake the real client away. * Authors who want devtools events in production should import the real client * from `@tanstack/devtools-event-client/production` instead. */ export declare class EventClientNoOp> implements PublicSurface> { #private; constructor({ pluginId, }: { pluginId: string; debug?: boolean; reconnectEveryMs?: number; enabled?: boolean; }); getPluginId(): string; createEventPayload(eventSuffix: TEvent, payload: TEventMap[TEvent]): { type: string; payload: TEventMap[TEvent]; pluginId: string; }; emit(_eventSuffix: TEvent, _payload: TEventMap[TEvent]): void; on(_eventSuffix: TEvent, _cb: (event: TanStackDevtoolsEvent) => void, _options?: { withEventTarget?: boolean; }): () => void; onAll(_cb: (event: TanStackDevtoolsEvent) => void): () => void; onAllPluginEvents(_cb: (event: AllDevtoolsEvents) => void): () => void; } export {};