import Core from "../interfaces/core"; import { List, ListOption } from "../types"; import { SubAccount, SubAccountParams, SubAccountUpdateParams } from "../types/sub-accounts"; import BaseResource from "./base"; export default class SubAccountsResource extends BaseResource implements Core { constructor(apiKey: string, maxRetries: number, timeout: number); /** Creates a new sub-account. */ create(params: SubAccountParams): Promise; /** Retrieves a sub-account. */ retrieve(id: string): Promise; /** Returns a list of sub-accounts. */ list(options?: ListOption): Promise>; /** Updates the specified sub-account. */ update(id: string, params: SubAccountUpdateParams): Promise; /** Permanently deletes a sub-account. */ delete(id: string): Promise; }