import Bridge from '../base';
import { ApiMap, HandlerMap, Schema, Config, SDK } from '../types';
type MSG = {
    on(channel: string, callback: (event: unknown, ...args: unknown[]) => void): void;
};
export default class NodeBridge<A extends ApiMap, E extends HandlerMap, S = Schema<A, E>> extends Bridge<A, E, S> {
    private socket;
    private channel;
    private event;
    constructor(socket: MSG, channel: string);
    constructor(socket: MSG, channel: string, conf: Config<A, E, S>);
    constructor(socket: MSG, channel: string, injectSdk: SDK<A, Bridge<A, E, S>>);
    constructor(socket: MSG, channel: string, conf: Config<A, E, S>, injectSdk: SDK<A, Bridge<A, E, S>>);
    cacheData: S[];
    getSocket(): MSG;
    protected postMessage(data: S): void;
    protected onmessage(): void;
}
export {};
