import type { EnvironmentInput } from "@stigmer/sdk";
import type { Environment } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/api_pb";
/** Return value of {@link useUpdateEnvironment}. */
export interface UseUpdateEnvironmentReturn {
    /** Submit an {@link EnvironmentInput} to update an existing Environment. Resolves with the updated resource. */
    readonly update: (input: EnvironmentInput) => Promise<Environment>;
    /** `true` while the update request is in flight. */
    readonly isUpdating: boolean;
    /** Error from the last failed update, or `null` when healthy. */
    readonly error: Error | null;
    /** Reset `error` to `null`. */
    readonly clearError: () => void;
}
/**
 * Behavior hook that wraps `environment.update()` with loading/error
 * state.
 *
 * Updates an existing Environment resource. The caller provides a
 * full {@link EnvironmentInput} including the environment's `name`
 * and `org` (used by the backend to identify the resource) and all
 * spec fields.
 *
 * Returns the full {@link Environment} proto including
 * server-updated metadata (version, timestamps) so callers can
 * immediately reference the latest state.
 *
 * This is a Layer 1 building-block hook for the **Environment Flow**
 * — persistent credential storage via Environment resources. For the
 * managed "personal environment" convenience, see
 * {@link usePersonalEnvironment} which composes this hook with
 * deterministic naming and label conventions.
 *
 * @example
 * ```tsx
 * const { update, isUpdating, error } = useUpdateEnvironment();
 *
 * const env = await update({
 *   name: "prod-credentials",
 *   org: "acme",
 *   description: "Production API keys",
 *   data: {
 *     API_KEY: { value: "sk-new-...", isSecret: true },
 *   },
 * });
 * ```
 */
export declare function useUpdateEnvironment(): UseUpdateEnvironmentReturn;
//# sourceMappingURL=useUpdateEnvironment.d.ts.map