import { PiHostUiRequest, PiHostUiResponse, PiThreadMetadata } from "../types.js"; import { PiThreadState } from "./threadState.js"; import { PiRuntimeExtras } from "./runtimeTypes.js"; import "../index.js"; //#region src/runtime/hooks.d.ts /** The full Pi runtime extras for the active thread. */ export declare const usePiRuntimeExtras: () => PiRuntimeExtras; /** The active Pi thread's metadata, or `null` when none is attached. */ export declare const usePiSession: () => PiThreadMetadata | null; /** * The live Pi thread state, optionally projected through a selector. * * The selected value is compared with `Object.is`, so the component re-renders * only when that value changes. A selector returning a new object or array * literal re-renders on every controller notification; select primitives or * return a memoized reference. */ export declare function usePiThreadState(): PiThreadState; export declare function usePiThreadState(selector: (state: PiThreadState) => T): T; /** Pending free-standing host-UI requests plus a responder. */ export declare const usePiHostUiRequests: () => { requests: readonly PiHostUiRequest[]; respond: (response: PiHostUiResponse) => Promise; }; //#endregion //# sourceMappingURL=hooks.d.ts.map