import Service from '../module/database'; import Address from '../models/address'; export default class AddressDB extends Service
{ constructor(userDataPath?: string); getAll: (query?: { address?: string | undefined; xpub?: string | undefined; coinType?: string | undefined; chainIndex?: number | undefined; addressIndex?: number | undefined; isSegwit?: boolean | undefined; } | undefined, sorting?: { sort: string; order?: "a" | "d" | undefined; } | undefined) => Promise; getChainIndex: (address: string, xpub: string, coinType: string) => Promise<{ chainIndex: number; addressIndex: number; isSegwit: boolean; } | null>; insert(address: Address): Promise