import * as amqplib from "amqp-connection-manager"; import { Readable } from "stream"; import { BSBEvents, BSBEventsConstructor, BSBPluginConfig, DTrace } from "@bettercorp/service-base"; import { z } from "zod"; export declare const secSchema: z.ZodDefault>; fatalOnDisconnect: z.ZodDefault; prefetch: z.ZodDefault; endpoints: z.ZodDefault>; credentials: z.ZodDefault; password: z.ZodDefault; }, "strip", z.ZodTypeAny, { username: string; password: string; }, { username?: string | undefined; password?: string | undefined; }>>; uniqueId: z.ZodDefault>; }, "strip", z.ZodTypeAny, { platformKey: string | null; fatalOnDisconnect: boolean; prefetch: number; endpoints: string[]; credentials: { username: string; password: string; }; uniqueId: string | null; }, { platformKey?: string | null | undefined; fatalOnDisconnect?: boolean | undefined; prefetch?: number | undefined; endpoints?: string[] | undefined; credentials?: { username?: string | undefined; password?: string | undefined; } | undefined; uniqueId?: string | null | undefined; }>>; export declare class Config extends BSBPluginConfig { validationSchema: z.ZodDefault>; fatalOnDisconnect: z.ZodDefault; prefetch: z.ZodDefault; endpoints: z.ZodDefault>; credentials: z.ZodDefault; password: z.ZodDefault; }, "strip", z.ZodTypeAny, { username: string; password: string; }, { username?: string | undefined; password?: string | undefined; }>>; uniqueId: z.ZodDefault>; }, "strip", z.ZodTypeAny, { platformKey: string | null; fatalOnDisconnect: boolean; prefetch: number; endpoints: string[]; credentials: { username: string; password: string; }; uniqueId: string | null; }, { platformKey?: string | null | undefined; fatalOnDisconnect?: boolean | undefined; prefetch?: number | undefined; endpoints?: string[] | undefined; credentials?: { username?: string | undefined; password?: string | undefined; } | undefined; uniqueId?: string | null | undefined; }>>; migrate(toVersion: string, fromVersion: string | null, fromConfig: any | null): any; } export declare class Plugin extends BSBEvents { publishConnection: amqplib.AmqpConnectionManager; receiveConnection: amqplib.AmqpConnectionManager; myId: string; private ear; private broadcast; private emit; private eas; constructor(config: BSBEventsConstructor); getPlatformName(name: string): string; init(trace: DTrace): Promise; private _connectToAMQP; dispose(): void; onBroadcast(trace: DTrace, pluginName: string, event: string, listener: { (trace: DTrace, args: any[]): Promise; }): Promise; emitBroadcast(trace: DTrace, pluginName: string, event: string, args: any[]): Promise; onEvent(trace: DTrace, pluginName: string, event: string, listener: { (trace: DTrace, args: any[]): Promise; }): Promise; emitEvent(trace: DTrace, pluginName: string, event: string, args: any[]): Promise; onReturnableEvent(trace: DTrace, pluginName: string, event: string, listener: { (trace: DTrace, args: any[]): Promise; }): Promise; emitEventAndReturn(trace: DTrace, pluginName: string, event: string, timeoutSeconds: number, args: any[]): Promise; receiveStream(trace: DTrace, event: string, listener: (trace: DTrace, error: Error | null, stream: Readable) => Promise, timeoutSeconds?: number | undefined): Promise; sendStream(trace: DTrace, event: string, streamId: string, stream: Readable): Promise; }