import type { CompanionClient } from './client.js'; import { type CompanionView, type CompanionViewOptions, type CompanionViewSnapshot } from './adapter-core.js'; /** Svelte-store-contract readable of the companion view snapshot. */ export interface CompanionStore { /** Store contract: calls `run` with the current snapshot immediately and on * every change. Returns unsubscribe. */ subscribe(run: (snapshot: CompanionViewSnapshot) => void): () => void; sendText: CompanionView['sendText']; confirmAction: CompanionView['confirmAction']; /** Detach from the client (does not close it). */ dispose(): void; client: CompanionClient; } /** Wrap a host-owned client as a Svelte-compatible readable store. */ export declare function companionStore(client: CompanionClient, opts?: CompanionViewOptions): CompanionStore; //# sourceMappingURL=svelte.d.ts.map