import type BN from 'bn.js'; export type Hash = string | number[]; export type AccountId = string | number[]; export declare enum Error { notAuthorised = "NotAuthorised", transferFailed = "TransferFailed", setCodeHashFailed = "SetCodeHashFailed", invalidDestination = "InvalidDestination", unknownMessage = "UnknownMessage", providerAccountExists = "ProviderAccountExists", providerExists = "ProviderExists", providerAccountDoesNotExist = "ProviderAccountDoesNotExist", providerDoesNotExist = "ProviderDoesNotExist", providerInsufficientFunds = "ProviderInsufficientFunds", providerInactive = "ProviderInactive", providerUrlUsed = "ProviderUrlUsed", dappExists = "DappExists", dappDoesNotExist = "DappDoesNotExist", dappInactive = "DappInactive", dappInsufficientFunds = "DappInsufficientFunds", captchaDataDoesNotExist = "CaptchaDataDoesNotExist", commitDoesNotExist = "CommitDoesNotExist", dappUserDoesNotExist = "DappUserDoesNotExist", noActiveProviders = "NoActiveProviders", datasetIdSolutionsSame = "DatasetIdSolutionsSame", codeNotFound = "CodeNotFound", unknown = "Unknown", invalidContract = "InvalidContract", invalidPayee = "InvalidPayee", invalidCaptchaStatus = "InvalidCaptchaStatus", noCorrectCaptcha = "NoCorrectCaptcha", notEnoughActiveProviders = "NotEnoughActiveProviders", providerFeeTooHigh = "ProviderFeeTooHigh", commitAlreadyExists = "CommitAlreadyExists", notAuthor = "NotAuthor", math = "Math" } export declare enum LangError { couldNotReadInput = "CouldNotReadInput" } export declare enum Payee { provider = "Provider", dapp = "Dapp" } export declare enum DappPayee { provider = "Provider", dapp = "Dapp", any = "Any" } export declare enum GovernanceStatus { active = "Active", inactive = "Inactive" } export type Provider = { status: GovernanceStatus; balance: string | number | BN; fee: number | string | BN; payee: Payee; url: Array; datasetId: Hash; datasetIdContent: Hash; }; export type Dapp = { status: GovernanceStatus; balance: string | number | BN; owner: AccountId; payee: DappPayee; }; export type UserHistorySummary = { correct: number | string | BN; incorrect: number | string | BN; score: number | string | BN; }; export type Commit = { id: Hash; userAccount: AccountId; datasetId: Hash; status: CaptchaStatus; dappContract: AccountId; providerAccount: AccountId; requestedAt: number | string | BN; completedAt: number | string | BN; userSignature: Array; }; export declare enum CaptchaStatus { pending = "Pending", approved = "Approved", disapproved = "Disapproved" } export type LastCorrectCaptcha = { before: number | string | BN; dappContract: AccountId; }; export type User = { history: Array; }; export type RandomProvider = { providerAccount: AccountId; provider: Provider; blockNumber: number | string | BN; }; //# sourceMappingURL=captcha.d.ts.map