import { BlockDTO } from "../dto/BlockDTO"; import { ConfDTO } from "../dto/ConfDTO"; import { IndexEntry } from "../indexer"; import { TransactionDTO } from "../dto/TransactionDTO"; import { DBBlock } from "../db/DBBlock"; import { FileDAL } from "../dal/fileDAL"; export declare const LOCAL_RULES_FUNCTIONS: { checkParameters: (block: BlockDTO) => Promise; isProofOfWorkCorrect: (block: BlockDTO) => boolean; checkProofOfWork: (block: BlockDTO) => Promise; checkInnerHash: (block: BlockDTO) => Promise; checkPreviousHash: (block: BlockDTO) => Promise; checkPreviousIssuer: (block: BlockDTO) => Promise; checkUnitBase: (block: BlockDTO) => Promise; checkBlockSignature: (block: BlockDTO) => Promise; checkBlockTimes: (block: BlockDTO, conf: ConfDTO) => Promise; checkIdentitiesSignature: (block: BlockDTO) => Promise; checkIdentitiesUserIDConflict: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkIdentitiesPubkeyConflict: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkIdentitiesMatchJoin: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkRevokedAreExcluded: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkRevokedUnicity: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkMembershipUnicity: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkMembershipsSignature: (block: BlockDTO) => Promise; checkPubkeyUnicity: (block: BlockDTO) => Promise; checkCertificationOneByIssuer: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkCertificationUnicity: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkCertificationIsntForLeaverOrExcluded: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; checkTxVersion: (block: BlockDTO) => Promise; checkTxLen: (block: BlockDTO) => Promise; checkTxIssuers: (block: BlockDTO) => Promise; checkTxSources: (block: BlockDTO) => Promise; checkTxAmounts: (block: BlockDTO) => Promise; checkTxRecipients: (block: BlockDTO) => Promise; checkTxSignature: (block: BlockDTO) => Promise; checkMaxTransactionChainingDepth: (block: BlockDTO, conf: ConfDTO, index: IndexEntry[]) => Promise; }; export interface SindexShortEntry { op: string; identifier: string; pos: number; tx: string | null; } declare function getMaxTransactionDepth(sindex: SindexShortEntry[]): number; declare function getTransactionDepth(txHash: string, sindex: SindexShortEntry[], localDepth?: number): number; declare function checkSingleMembershipSignature(ms: any): boolean; declare function checkBunchOfTransactions(transactions: TransactionDTO[], conf: ConfDTO, medianTime: number, options?: { dontCareAboutChaining?: boolean; }): Promise; export declare const LOCAL_RULES_HELPERS: { maxAcceleration: (conf: ConfDTO) => any; checkSingleMembershipSignature: typeof checkSingleMembershipSignature; checkBunchOfTransactions: typeof checkBunchOfTransactions; getTransactionDepth: typeof getTransactionDepth; getMaxTransactionDepth: typeof getMaxTransactionDepth; checkSingleTransactionLocally: (tx: any, conf: ConfDTO) => Promise; checkTxAmountsValidity: (tx: TransactionDTO) => void; getMaxPossibleVersionNumber: (current: DBBlock | null, dal: FileDAL) => Promise; }; export {};