import type { PlatformClientCreateResponse } from "@stigmer/protos/ai/stigmer/iam/platformclient/v1/io_pb";
/** Return value of {@link useRotatePlatformClientSecret}. */
export interface UseRotatePlatformClientSecretReturn {
    /**
     * Rotate the client secret for a platform client by its resource ID.
     * Resolves with a {@link PlatformClientCreateResponse} containing the
     * updated resource and the **one-time new raw client secret**.
     */
    readonly rotateSecret: (id: string) => Promise<PlatformClientCreateResponse>;
    /** `true` while the rotation request is in flight. */
    readonly isRotating: boolean;
    /** Error from the last failed rotation, or `null` when healthy. */
    readonly error: Error | null;
    /** Reset `error` to `null`. */
    readonly clearError: () => void;
}
/**
 * Mutation hook that wraps `platformclient.rotateSecret()` with
 * loading and error state.
 *
 * Generates a new client secret, invalidating the previous one.
 * The response includes a **one-time raw client secret** — it must
 * be shown to the user immediately as the server never returns it
 * again.
 *
 * @example
 * ```tsx
 * const { rotateSecret, isRotating, error } = useRotatePlatformClientSecret();
 *
 * const response = await rotateSecret("pc-abc123");
 * // response.clientSecret is the new one-time raw secret
 * ```
 */
export declare function useRotatePlatformClientSecret(): UseRotatePlatformClientSecretReturn;
//# sourceMappingURL=useRotatePlatformClientSecret.d.ts.map