#!/usr/bin/env node import type { ExtensionFactory } from "@earendil-works/pi-coding-agent"; import { type CurrentModelHint } from "./actions/handlers.js"; export type { RelayConnectivity, RemoteState } from "./runtime/relay_lifecycle.js"; type ProcessIdentity = Readonly<{ endpointId: string; runtimeInstanceId: string; }>; /** One Pi process owns a fresh endpoint identity; extension reloads reuse it. */ export declare function processEndpointIdentity(): ProcessIdentity; export declare const _getState: () => "idle" | "started" | "paired"; export declare const _getCachedPublicKeyForTest: () => string | null; export declare const _getCurrentTurnIdForTest: () => string | null; export declare const _setPiForTest: (value: unknown) => void; export declare const _setCurrentModelForTest: (value: CurrentModelHint | undefined) => void; export declare const _setSessionStartedAtForTest: (_value: number | null) => void; export declare const _setMessageBufferForTest: (_value: unknown[]) => void; export declare const _getMessageBufferForTest: () => unknown[]; export declare const _hasPendingReconnect: () => boolean; export declare const _getActivePeerCountForTest: () => number; export declare const _hasActivePeerForTest: (ownerId: string) => boolean; export declare const _getDisposedForTest: () => boolean; export declare const _setDisposedForTest: (value: boolean) => void; export declare const _resetAutoInitedForTest: () => void; export declare const _setAutoInitedForTest: (_value: boolean) => void; export declare const _setSessionNewBridgeTimeoutForTest: (timeoutMs: number) => void; declare const extension: ExtensionFactory; export default extension; /** Compatibility seam used by focused extension tests. */ export declare function _startRelayForTest(ctx: unknown): Promise; export declare function _stopForTest(_ctx: unknown): Promise; export declare function _connectForTest(ctx: unknown): Promise;