import { type WorkflowVersionEntry } from "@stigmer/protos/ai/stigmer/agentic/workflow/v1/version_pb";
/** Return value of {@link useWorkflowVersion}. */
export interface UseWorkflowVersionReturn {
    /** The resolved version entry, or `null` while loading / on error / when disabled. */
    readonly version: WorkflowVersionEntry | null;
    /** `true` while the fetch is in flight. */
    readonly isLoading: boolean;
    /** Error from the last failed request, or `null` when healthy. */
    readonly error: Error | null;
    /** Discard cached data and re-fetch from the server. */
    readonly refetch: () => void;
}
/**
 * Data hook that fetches a single workflow version entry by ID and hash.
 *
 * Calls `stigmer.workflow.getVersion()` to retrieve the full version
 * details for a specific content hash. Useful for inspecting a
 * particular historical version outside the timeline listing.
 *
 * **Graceful degradation**: If the backend returns UNIMPLEMENTED, the
 * hook resolves to `null` without raising an error.
 *
 * Pass `null` for either `workflowId` or `versionHash` to skip
 * fetching (stable no-op).
 *
 * @example
 * ```tsx
 * const { version, isLoading } = useWorkflowVersion(workflowId, selectedHash);
 *
 * if (version) {
 *   return <pre>{version.validatedYaml}</pre>;
 * }
 * ```
 */
export declare function useWorkflowVersion(workflowId: string | null, versionHash: string | null): UseWorkflowVersionReturn;
//# sourceMappingURL=useWorkflowVersion.d.ts.map