import { AmplitudeReturn } from '../amplitude-promise'; import { NodeConfig, NodeOptions } from '../config'; import { CoreClient } from './core-client'; import { Plugin } from '../plugin'; export interface NodeClient extends CoreClient { /** * Initializes the Amplitude SDK with your apiKey, optional configurations. * This method must be called before any other operations. * * ```typescript * await init(API_KEY, options).promise; * ``` */ init(apiKey: string, options?: NodeOptions): AmplitudeReturn; /** * Adds a new plugin. * * ```typescript * const plugin = { * name: 'my-plugin', * type: 'enrichment', * async setup(config: NodeConfig, amplitude: NodeClient) { * return; * }, * async execute(event: Event) { * return event; * }, * }; * amplitude.add(plugin); * ``` */ add(plugin: Plugin): AmplitudeReturn; } //# sourceMappingURL=node-client.d.ts.map