import { AccountId, AccountIndex } from '@plugnet/types/interfaces';
import { Observable } from 'rxjs';
import { ApiInterfaceRx } from '@plugnet/api/types';
/**
* @name idToIndex
* @param {( AccountId | string )} accountId - An accounts Id in different formats.
* @returns Returns the corresponding AccountIndex.
* @example
*
*
* ```javascript
* const ALICE = '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY';
* api.derive.accounts.idToIndex(ALICE, (accountIndex) => {
* console.log(`The AccountIndex of ${ALICE} is ${accountIndex}`);
* });
* ```
*/
export declare function idToIndex(api: ApiInterfaceRx): (accountId: AccountId | string) => Observable;