import type { IdentityAccount } from "@stigmer/protos/ai/stigmer/iam/identityaccount/v1/api_pb";
/** Return value of {@link useWhoAmI}. */
export interface UseWhoAmIReturn {
    /** The authenticated user's identity account, or `null` while loading / on error. */
    readonly account: IdentityAccount | null;
    /** `true` while the initial fetch is in flight. */
    readonly isLoading: boolean;
    /** Error from the failed request, or `null` when healthy. */
    readonly error: Error | null;
}
/**
 * Data hook that fetches the current authenticated user's
 * {@link IdentityAccount} via `identityAccount.whoAmI()`.
 *
 * The result is cached for the lifetime of the `Stigmer` client
 * instance — subsequent mounts and re-renders reuse the cached
 * value without additional network calls.
 *
 * Useful for self-protection in access management UIs (disabling
 * "remove" or "change role" on the current user) and displaying
 * a "You" indicator.
 *
 * @example
 * ```tsx
 * const { account } = useWhoAmI();
 * const myId = account?.metadata?.id;
 * ```
 */
export declare function useWhoAmI(): UseWhoAmIReturn;
//# sourceMappingURL=useWhoAmI.d.ts.map