import type { Call } from '@astrale-os/sdk/client'; import type { SessionRequestOptions } from '@astrale-os/sdk/client/session'; import type { Value } from '@astrale-os/sdk/value'; import type { KernelClient } from '@astrale-os/shell'; export type KernelStream = Awaited>; export type StreamItem = Value; export type CallAuthor = Call | ((...args: A) => Call); export interface StreamOptions extends SessionRequestOptions { readonly onChunk?: (chunk: T) => void; } export interface StreamHandle { start(...args: A): Promise; readonly chunks: readonly T[]; readonly last: T | null; readonly streaming: boolean; readonly error: unknown; cancel(): void; } export declare function useStream(author: CallAuthor | null, options?: StreamOptions): StreamHandle; //# sourceMappingURL=stream.hook.d.ts.map