import { Address } from 'mate/address'; import { ContractResultItem as CRI } from '../lib/contract'; export declare type SliceKeyType = 'base58' | 'base32'; export declare namespace ConstractHelper { type SliceDb = { get: (key: string) => T; has: (key: string) => boolean; delete: (key: string) => void; set: (key: string, value: T) => void; }; type ContractResultItem = CRI; } declare class SliceDb implements ConstractHelper.SliceDb { constructor(keyType: SliceKeyType); keyType: SliceKeyType; db: Map; get: (key: string) => T; set: (key: string, value: T) => Map; has: (key: string) => boolean; delete: (key: string) => boolean; } declare class BaseContract { msg: { sender: Address; ts: number; }; } export declare const constractHelper: { createSliceDb: (keyType: SliceKeyType) => SliceDb; BaseContract: typeof BaseContract; hash: (str: string) => string; log: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void; }; }; export {};