import { AccountId, AccountIndex } from "../../types/interfaces";
import { Observable } from 'rxjs';
import { ApiInterfaceRx } from "../../api/types";
/**
 * @name indexToId
 * @param {( AccountIndex | string )} accountIndex - An accounts index in different formats.
 * @returns Returns the corresponding AccountId.
 * @example
 * <BR>
 *
 * ```javascript
 * api.derive.accounts.indexToId('F7Hs', (accountId) => {
 *   console.log(`The AccountId of F7Hs is ${accountId}`);
 * });
 * ```
 */
export declare function indexToId(api: ApiInterfaceRx): (accountIndex: AccountIndex | string) => Observable<AccountId | undefined>;
