import type { TerminalControlRef } from "./terminal-agent-adapter.js"; import { type CanonicalMutationResources, type CanonicalMutationScopes } from "./mutation-transaction.js"; export type NativeThreadTransitionResourceBinding = Readonly<{ freshTerminal: TerminalControlRef; capturedStoreDir: string; }>; /** * Bind one lifecycle operation to the active terminal+writer transaction. * The operation receives the post-lock terminal route and canonical Store only * after authentic scopes and the captured resource identities are revalidated. */ export declare function nativeThreadTransitionResourceBoundOperation(binding: NativeThreadTransitionResourceBinding, operation: (freshTerminal: TerminalControlRef, canonicalStoreDir: string, ...args: Args) => Result): (scopes: CanonicalMutationScopes, resources: CanonicalMutationResources, ...args: Args) => Result;