import { Observable } from 'rxjs'; import { SendResponse } from './SendResponse'; import { IpcClient, IpcClientSendOptions, IpcEvent, IpcEventHandler, IpcEventObservable, IpcFilter, IpcIdentifier, IpcMessage, ProcessType, IpcHandlerRefs } from './types'; export * from './types'; export declare type SendDelegate = (channel: string, ...args: any) => void; export declare type HandlerRegistered = (args: { type: IpcMessage['type']; client: IpcIdentifier; }) => void; export declare type GetHandlerRefs = () => IpcHandlerRefs; export declare class IPC implements IpcClient { static readonly MAIN = 0; constructor(args: { id: number; process: ProcessType; events$: Observable; onSend: SendDelegate; onHandlerRegistered: HandlerRegistered; getHandlerRefs: GetHandlerRefs; }); dispose(): void; private readonly _; readonly id: number; readonly process: ProcessType; readonly channel: string; readonly MAIN = 0; disposed$: Observable; timeout: number; readonly dispose$: Observable; readonly events$: IpcEventObservable; get isDisposed(): boolean; filter(criteria: IpcFilter | T['type']): IpcEventObservable; on(type: T['type']): Observable>; send(type: T['type'], payload: T['payload'], options?: IpcClientSendOptions): SendResponse; private _send; private get sendDelegate(); handle(type: T['type'], handler: IpcEventHandler): IpcClient; private runHandlers; private get handlerRefs(); handlers(type: M['type'], options?: { exclude?: number | number[]; }): IpcIdentifier[]; static asTarget(value?: number | number[]): number[]; static toIdentifier(ipc: IpcClient): IpcIdentifier; }