import { type GroupXRuntimeIdentity } from "../core/runtime-instance.js"; export interface GroupXRuntimeLaunchDescriptor { readonly configPath: string; readonly host: "127.0.0.1"; readonly port: number; readonly origin: string; readonly closeTimeoutMs: number; readonly identity: GroupXRuntimeIdentity; } export type GroupXRuntimeProbe = { readonly kind: "same"; readonly identity: GroupXRuntimeIdentity; } | { readonly kind: "different-config"; readonly identity: GroupXRuntimeIdentity; } | { readonly kind: "legacy-groupx"; } | { readonly kind: "incompatible-groupx"; } | { readonly kind: "occupied"; } | { readonly kind: "unreachable"; }; export interface GroupXRuntimeProbeOptions { readonly fetch?: typeof globalThis.fetch; readonly timeoutMs?: number; } export interface GroupXRuntimeShutdownOptions extends GroupXRuntimeProbeOptions { } export declare function describeGroupXRuntimeLaunch(configPath: string): Promise; export declare function probeGroupXRuntime(descriptor: GroupXRuntimeLaunchDescriptor, options?: GroupXRuntimeProbeOptions): Promise; /** Ask one already-identified local runtime to begin a graceful shutdown. */ export declare function requestGroupXRuntimeShutdown(descriptor: GroupXRuntimeLaunchDescriptor, runningIdentity: GroupXRuntimeIdentity, options?: GroupXRuntimeShutdownOptions): Promise; export declare function isAddressInUseError(error: unknown): boolean; //# sourceMappingURL=runtime-instance.d.ts.map