import { InitPapiOptions, InitPapiResult } from './utils'; /** * The parameters object for the `initPapi` function. * * Warning: It's initialized with `gtest` types descriptor! * To match types of a custom chain, initialize the client with your descriptor instead of using `api` returned by this function. * Example: * ```ts * import { gdev } from 'g1-papi/descriptors' * const { client } = await initPapi({ chain: 'gdev' }) * const api = client.getTypedApi(gdev) * ``` * * @param options - optional, the parameters object. * @param options.chain - The chain to connect to. * @param options.endpoint - The endpoint to connect to. * @param options.onConnecting - A function that is called when the connection is being established. * @param options.onConnected - A function that is called when the connection is established. * @param options.onError - A function that is called when the connection fails. * @param options.onClose - A function that is called when the connection is closed. */ export declare function initPapi(options: InitPapiOptions): Promise; export type { InitPapiResult };