import { IPC_DATA_ENCODING } from "./internal/IpcData.js"; import { IPC_MESSAGE_TYPE } from "./internal/IpcMessage.js"; export type $IpcEvent = ReturnType>; declare const ipcEvent: (name: N, data: string | Uint8Array, encoding: IPC_DATA_ENCODING, order?: number) => { readonly name: N; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }; export declare const IpcEvent: ((name: N, data: string | Uint8Array, encoding: IPC_DATA_ENCODING, order?: number) => { readonly name: N; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }) & { fromBase64(name: string, data: Uint8Array, order?: number): { readonly name: string; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }; fromBinary(name: string, data: Uint8Array, order?: number): { readonly name: string; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; } & { toJSON: (() => { readonly name: string; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }) & { readonly fn: () => { readonly name: string; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }; readonly hasRun: boolean; readonly result: { readonly name: string; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }; reset(): void; }; }; fromUtf8(name: string, data: Uint8Array, order?: number): { readonly name: string; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }; fromText(name: string, data: string, order?: number): { readonly name: string; readonly data: string | Uint8Array; readonly encoding: IPC_DATA_ENCODING; readonly order: number | undefined; readonly type: IPC_MESSAGE_TYPE.EVENT; }; binary(event: $IpcEvent): Uint8Array; text(event: $IpcEvent): string; }; export {}; //# sourceMappingURL=IpcEvent.d.ts.map