import { AccountId, AccountIndex, Address } from '@plugnet/types/interfaces';
import { Observable } from 'rxjs';
import { ApiInterfaceRx } from '@plugnet/api/types';
export declare type AccountIdAndIndex = [AccountId?, AccountIndex?];
/**
* @name idAndIndex
* @param {(Address | AccountId | AccountIndex | string | null)} address - An accounts address in various formats.
* @description An array containing the [[AccountId]] and [[AccountIndex]] as optional values.
* @example
*
*
* ```javascript
* api.derive.accounts.idAndIndex('F7Hs', ([id, ix]) => {
* console.log(`AccountId #${id} with corresponding AccountIndex ${ix}`);
* });
* ```
*/
export declare function idAndIndex(api: ApiInterfaceRx): (address?: Address | AccountId | AccountIndex | string | null) => Observable;