import type { IdentityProviderInput } from "@stigmer/sdk";
import type { IdentityProvider } from "@stigmer/protos/ai/stigmer/iam/identityprovider/v1/api_pb";
/** Return value of {@link useCreateIdentityProvider}. */
export interface UseCreateIdentityProviderReturn {
    /** Submit an {@link IdentityProviderInput} to create a new identity provider. Resolves with the server-created resource. */
    readonly create: (input: IdentityProviderInput) => Promise<IdentityProvider>;
    /** `true` while the create request is in flight. */
    readonly isCreating: boolean;
    /** Error from the last failed create, or `null` when healthy. */
    readonly error: Error | null;
    /** Reset `error` to `null`. */
    readonly clearError: () => void;
}
/**
 * Mutation hook that wraps `identityProvider.create()` with loading
 * and error state.
 *
 * Creates an identity provider resource within an organization. The
 * caller provides an {@link IdentityProviderInput} with the required
 * metadata (name, org) and spec fields (JWKS URI, allowed issuers,
 * expected audience).
 *
 * @example
 * ```tsx
 * const { create, isCreating, error } = useCreateIdentityProvider();
 *
 * const idp = await create({
 *   name: "Acme Corp SSO",
 *   org: "acme",
 *   jwksUri: "https://acme.us.auth0.com/.well-known/jwks.json",
 *   allowedIssuers: ["https://acme.us.auth0.com/"],
 *   expectedAudience: "stigmer-api",
 * });
 * ```
 */
export declare function useCreateIdentityProvider(): UseCreateIdentityProviderReturn;
//# sourceMappingURL=useCreateIdentityProvider.d.ts.map