import type { IdentityProviderInput } from "@stigmer/sdk";
import type { IdentityProvider } from "@stigmer/protos/ai/stigmer/iam/identityprovider/v1/api_pb";
/** Return value of {@link useUpdateIdentityProvider}. */
export interface UseUpdateIdentityProviderReturn {
    /** Submit an {@link IdentityProviderInput} to update an existing identity provider. Resolves with the updated resource. */
    readonly update: (input: IdentityProviderInput) => Promise<IdentityProvider>;
    /** `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;
}
/**
 * Mutation hook that wraps `identityProvider.update()` with loading
 * and error state.
 *
 * Updates an existing identity provider. The input must include the
 * `slug` field to identify the target resource, along with the updated
 * spec fields.
 *
 * @example
 * ```tsx
 * const { update, isUpdating, error } = useUpdateIdentityProvider();
 *
 * await update({
 *   name: "Acme Corp SSO",
 *   slug: "acme-sso",
 *   org: "acme",
 *   displayName: "Acme Corp SSO",
 *   isSsoProvider: true,
 *   oidcClientId: "abc123",
 * });
 * refetch(); // refresh detail view
 * ```
 */
export declare function useUpdateIdentityProvider(): UseUpdateIdentityProviderReturn;
//# sourceMappingURL=useUpdateIdentityProvider.d.ts.map