import type { AuthenticatedOwnerCallChain, BoundAgentInvocation, InternalEnvelopeInput, InternalReplayClaim, InternalReplayGuard, OwnerCallChainInput, RuntimeSpawnResult, StudioInternalEnvelopeInput, TrustedHostContext, TrustedInternalEnvelope } from './types.js'; import type { DurableStateAdapter } from '../durable/file-journal.js'; export declare function createAuthenticatedOwnerCallChain(input: unknown): AuthenticatedOwnerCallChain | null; export declare function isAuthenticatedOwnerCallChain(value: unknown): value is AuthenticatedOwnerCallChain; /** Create an internal envelope only from trusted runtime/orchestrator fields, never command text. */ export declare function createTrustedInternalEnvelope(input: unknown): TrustedInternalEnvelope | null; /** Create a studio envelope only from an authenticated owner chain. */ export declare function createTrustedStudioInternalEnvelope(input: unknown): TrustedInternalEnvelope | null; export declare function isTrustedInternalEnvelope(value: unknown): value is TrustedInternalEnvelope; /** * Bind already-separated runtime fields. Unknown input is checked as plain data before any * property access or branding; malformed and accessor-bearing objects return null. */ export declare function bindRuntimeInvocation(input: unknown): BoundAgentInvocation | null; /** Bind the sole public studio-scoped runtime route without accepting project or owner fields. */ export declare function bindStudioRuntimeInvocation(input: unknown): BoundAgentInvocation | null; export declare function bindHostInvocation(commandId: string, projectId: string, task: string, hostContext: unknown): BoundAgentInvocation | null; export declare function bindStudioHostInvocation(task: string, hostContext: unknown): BoundAgentInvocation | null; export declare function isRuntimeBoundInvocation(value: unknown): value is BoundAgentInvocation; export declare class InMemoryInternalReplayGuard implements InternalReplayGuard { #private; claim(claim: InternalReplayClaim): Promise<'claimed' | 'replay'>; } export declare class DurableInternalReplayGuard implements InternalReplayGuard { readonly adapter: DurableStateAdapter; readonly occurredAt: () => string; constructor(adapter: DurableStateAdapter, occurredAt?: () => string); claim(claim: InternalReplayClaim): Promise<'claimed' | 'replay' | 'unavailable'>; } export declare const unavailableInternalReplayGuard: InternalReplayGuard; export declare function unavailableRuntimeSpawnAdapter(runtime: string): () => Promise; export type { InternalEnvelopeInput, OwnerCallChainInput, StudioInternalEnvelopeInput, TrustedHostContext };