import { BaseResource } from "./base";
import { Account, Transaction, PendingTransaction, TransactionQueryParams, Paginated } from "../models";
/**
 * Utilities for managing Akahu accounts that have been linked by users.
 *
 * {@link https://developers.akahu.nz/docs/accessing-account-data}
 *
 * @category Resource
 */
export declare class AccountsResource extends BaseResource {
    /**
     * List all accounts that have been connected by the user associated with the specified `token`.
     *
     * {@link https://developers.akahu.nz/reference/get_accounts}
     */
    list(token: string): Promise<Account[]>;
    /**
     * Get a single account that has been connected by the user associated with the specified `token`.
     *
     * {@link https://developers.akahu.nz/reference/get_accounts-id}
     */
    get(token: string, accountId: string): Promise<Account>;
    /**
     * List transactions for a specified account.
     *
     * {@link https://developers.akahu.nz/reference/get_accounts-id-transactions}
     */
    listTransactions(token: string, accountId: string, query?: TransactionQueryParams): Promise<Paginated<Transaction>>;
    /**
     * List pending transactions for a specified account.
     *
     * {@link https://developers.akahu.nz/reference/get_accounts-id-transactions-pending}
     */
    listPendingTransactions(token: string, accountId: string): Promise<PendingTransaction[]>;
    /**
     * Revoke a single account from the specified `token`.
     *
     * After this call the token will no longer have access to the specified account or it's associated data,
     * including transactions.
     *
     * {@link https://developers.akahu.nz/reference/delete_accounts-id}
     *
     * @deprecated Use {@link AuthorisationsResource.revoke | `authorisations.revoke`} instead.
     */
    revoke(token: string, accountId: string): Promise<void>;
    /**
     * Refresh a single account that has been connected by the user associated with the specified `token`.
     *
     * {@link https://developers.akahu.nz/reference/post_refresh-id}
     */
    refresh(token: string, accountId: string): Promise<void>;
    /**
     * Refresh all accounts that have been connected by the user associated with the specified `token`.
     *
     * {@link https://developers.akahu.nz/reference/post_refresh}
     */
    refreshAll(token: string): Promise<void>;
}
