import { InteractionBuilderFn } from "../interaction/interaction"; /** * A builder function that creates a ping interaction to test connectivity to the Flow Access Node. * * The ping interaction is a simple way to test if the Flow Access Node is reachable and responding. This is useful for health checks, connectivity testing, and debugging network issues. * * @returns A function that processes an interaction object * * @example * import * as fcl from "@onflow/fcl"; * * // Simple ping to test connectivity * try { * const response = await fcl.send([fcl.ping()]); * console.log("Access Node is reachable"); * } catch (error) { * console.error("Access Node is not reachable:", error); * } * * // Use ping for health checks * const healthCheck = async () => { * try { * await fcl.send([fcl.ping()]); * return { status: "healthy", timestamp: new Date().toISOString() }; * } catch (error) { * return { status: "unhealthy", error: error.message, timestamp: new Date().toISOString() }; * } * }; * * const health = await healthCheck(); * console.log("Health status:", health); */ export declare function ping(): InteractionBuilderFn;