import type { $MicroModuleManifest } from "../../types.js"; import { IPC_LIFECYCLE_STATE } from "./internal/IpcLifecycle.js"; import { IPC_MESSAGE_TYPE } from "./internal/IpcMessage.js"; export type $IpcLifecycleState = $IpcLifecycleInit | $IpcLifecycleOpening | $IpcLifecycleOpened | $IpcLifecycleClosing | $IpcLifecycleClosed; export type $IpcLifecycleInit = ReturnType; export declare const IpcLifecycleInit: (pid: number, locale: $MicroModuleManifest, remote: $MicroModuleManifest) => { pid: number; locale: $MicroModuleManifest; remote: $MicroModuleManifest; name: IPC_LIFECYCLE_STATE.INIT; }; export type $IpcLifecycleOpening = ReturnType; export declare const IpcLifecycleOpening: () => { name: IPC_LIFECYCLE_STATE.OPENING; }; export type $IpcLifecycleOpened = ReturnType; export declare const IpcLifecycleOpened: () => { name: IPC_LIFECYCLE_STATE.OPENED; }; export type $IpcLifecycleClosing = ReturnType; export declare const IpcLifecycleClosing: (reason?: string) => { reason: string | undefined; name: IPC_LIFECYCLE_STATE.CLOSING; }; export type $IpcLifecycleClosed = ReturnType; export declare const IpcLifecycleClosed: (reason?: string) => { reason: string | undefined; name: IPC_LIFECYCLE_STATE.CLOSED; }; export type $IpcLifecycle = ReturnType>; declare const ipcLifecycle: (state: S, order?: number) => { readonly state: $IpcLifecycleState; readonly order: number; readonly type: IPC_MESSAGE_TYPE.LIFECYCLE; }; export declare const IpcLifecycle: ((state: S, order?: number) => { readonly state: $IpcLifecycleState; readonly order: number; readonly type: IPC_MESSAGE_TYPE.LIFECYCLE; }) & { equals: (a: $IpcLifecycle, b: $IpcLifecycle) => boolean; init: (pid: number, locale: $MicroModuleManifest, remote: $MicroModuleManifest) => { pid: number; locale: $MicroModuleManifest; remote: $MicroModuleManifest; name: IPC_LIFECYCLE_STATE.INIT; }; opening: () => { name: IPC_LIFECYCLE_STATE.OPENING; }; opened: () => { name: IPC_LIFECYCLE_STATE.OPENED; }; closing: (reason?: string) => { reason: string | undefined; name: IPC_LIFECYCLE_STATE.CLOSING; }; closed: (reason?: string) => { reason: string | undefined; name: IPC_LIFECYCLE_STATE.CLOSED; }; }; export {}; //# sourceMappingURL=IpcLifecycle.d.ts.map