import { Near, NearConfig } from './near.js'; export interface ConnectConfig extends NearConfig { /** * Optionally, an in-memory key store or another type of key store. */ keyPath?: string; } /** * Initialize connection to Near network. * @param config The configuration object for connecting to NEAR Protocol. * @returns A Promise that resolves to a `Near` object representing the connection. * * @example * ```js * const connectionConfig = { * networkId: 'testnet', * nodeUrl: 'https://rpc.testnet.near.org', * walletUrl: 'https://wallet.testnet.near.org', * helperUrl: 'https://helper.testnet.near.org', * keyStore: new InMemoryKeyStore(), * deps: { keyStore: new BrowserLocalStorageKeyStore() }, * logger: true, * masterAccount: 'master-account.near', * }; * * const nearConnection = await connect(connectionConfig); * console.log(nearConnection); // Near object representing the connection * ``` */ export declare function connect(config: ConnectConfig): Promise; //# sourceMappingURL=connect.d.ts.map