import type { Node as KernelNode } from '@astrale-os/sdk/graph/node'; /** Common result state for Shell React reads. */ export interface ReadState { /** A request is in flight. Last-good data may still be present. */ readonly pending: boolean; /** Last request failure. Cleared when the next request begins. */ readonly error: unknown; /** True only when an upstream subscription is active. */ readonly live: boolean; /** Reserved journal position. Direct Graph reads report zero. */ readonly seq: number; refetch(): Promise; } export interface Windowed { readonly more: { readonly has: boolean; readonly pending: boolean; load(): Promise; }; } /** Options shared by point, Query, and neighbor reads. */ export interface ReadOptions { readonly signal?: AbortSignal; readonly timeoutMs?: number; /** Retain the previous successful value while the next request is pending. */ readonly keepPrevious?: boolean; } export type Node = KernelNode; export declare const EMPTY_NODES: readonly Node[]; export declare const NO_MORE: Windowed['more']; /** Stable failure for a retained hook whose required Kernel capability does not exist. */ export declare class UnsupportedFeatureError extends Error { readonly code: 'SHELL_REACT_UNSUPPORTED'; readonly feature: string; constructor(feature: string); } export declare function idleReadState(): ReadState; export declare function unsupportedReadState(feature: string): ReadState; //# sourceMappingURL=envelope.d.ts.map