import type { WorkflowInstance } from "@stigmer/protos/ai/stigmer/agentic/workflowinstance/v1/api_pb";
import type { WorkflowExecutionVisibility } from "@stigmer/protos/ai/stigmer/agentic/workflowinstance/v1/spec_pb";
/** Return value of {@link useUpdateWorkflowInstanceExecutionVisibility}. */
export interface UseUpdateWorkflowInstanceExecutionVisibilityReturn {
    /**
     * Update who can observe the runs (executions) of a workflow instance.
     *
     * This is distinct from the instance's own visibility: it controls run
     * observability via the `workflow_instance#execution_viewer` relation,
     * letting an owner keep the instance private while opting all org members
     * into watching its executions.
     */
    readonly updateExecutionVisibility: (resourceId: string, executionVisibility: WorkflowExecutionVisibility) => Promise<WorkflowInstance>;
    /** `true` while the update RPC is in flight. */
    readonly isUpdating: boolean;
    /** Error from the last failed update, or `null` when healthy. */
    readonly error: Error | null;
    /** Clear the error state. */
    readonly clearError: () => void;
}
/**
 * Mutation hook that updates the execution (run) visibility of a
 * WorkflowInstance.
 *
 * Wraps `stigmer.workflowInstance.updateExecutionVisibility()` with
 * loading/error state. The caller is responsible for refreshing the instance
 * after a successful update.
 */
export declare function useUpdateWorkflowInstanceExecutionVisibility(): UseUpdateWorkflowInstanceExecutionVisibilityReturn;
//# sourceMappingURL=useUpdateWorkflowInstanceExecutionVisibility.d.ts.map