import { type Config as EmbeddedNodeConfig } from "./smoldot-light.js"; import type { ScClient } from "./types.js"; export * from "./types.js"; export type { EmbeddedNodeConfig }; /** * Configuration that can be passed to {createScClient}. */ export interface Config { /** * If `true`, then the client will always use a node embedded within the page and never use * the substrate-connect extension. * * Defaults to `false`. */ forceEmbeddedNode?: boolean; /** * Configuration to use for the embedded node. Ignored if the extension is present. * * If you want to make sure that this configuration isn't ignored, use this option in * conjunction with {Config.forceEmbeddedNode}. */ embeddedNodeConfig?: EmbeddedNodeConfig; } /** * Returns a {@link ScClient} that connects to chains, either through the substrate-connect * extension or by executing a light client directly from JavaScript, depending on whether the * extension is installed and available. * * The substrate-connect extension is identified via the `@substrate/discovery` protocol. * * It must: * * 1. Be compliant `@substrate/smoldot-discovery` interface * 2. Include an rdns label starting with `io.github.paritytech.SubstrateConnect` * */ export declare const createScClient: (config?: Config) => ScClient; //# sourceMappingURL=index.d.ts.map