import type { IntentRegistry } from '@astrale-os/shell'; import type { IntentPayload, IntentReply } from './envelope.js'; /** Delivery context passed alongside an inbound intent's payload. */ export interface IntentCtx { /** REAL source windowId; the `''` sentinel for a parent-delivered intent. */ readonly sender: string; /** Reply to the sender's pending request — exactly-once; dropped if it died. */ reply(result: IntentReply): void; } /** * Subscribe `handler` to inbound `name` intents. `ctx.sender` is the REAL * windowId (the channel-authenticated id, or `''` upstream); `ctx.reply` * answers a correlated request once. */ export declare function useIntent(name: K, handler: (payload: IntentPayload, ctx: IntentCtx) => void | Promise): void; //# sourceMappingURL=listen-intent.hook.d.ts.map