import { HexString } from '@polkadot/util/types'; import { BuildOptions, Model, Sequelize } from '@subql/x-sequelize'; export interface ProofOfIndex { id: number; chainBlockHash: Uint8Array | null; hash: Uint8Array | undefined; parentHash: Uint8Array | undefined; operationHashRoot: Uint8Array | null; projectId?: string; } export interface SyncedProofOfIndex extends ProofOfIndex { hash: Uint8Array; parentHash: Uint8Array; } export interface ProofOfIndexHuman extends Omit { chainBlockHash: HexString | undefined; hash: HexString | undefined; parentHash: HexString | undefined; operationHashRoot: HexString | undefined; } export interface PoiModel extends Model, ProofOfIndex { } export type PoiRepo = typeof Model & { new (values?: unknown, options?: BuildOptions): PoiModel; }; export declare function PoiFactoryDeprecate(sequelize: Sequelize, schema: string): PoiRepo; export declare function PoiFactory(sequelize: Sequelize, schema: string): PoiRepo;