import type { SigningKey } from 'ethers'; export type PolygonDidInitOptions = { rpcUrl: string; signingKey: SigningKey; schemaManagerContractAddress: string; serverUrl: string; fileServerToken: string; }; export type PolygonDidRegisterOptions = { did: string; publicKeyBase58: string; serviceEndpoint?: string; }; export type ResourcePayload = { resourceURI: string; resourceCollectionId: string; resourceId: string; resourceName: string; resourceType: string; mediaType: string; created: string; checksum: string; previousVersionId: string | null; nextVersionId: string | null; }; export type EstimatedTxDetails = { transactionFee: string; gasLimit: string; gasPrice: string; maxFeePerGas: number; maxPriorityFeePerGas: number; network: string; chainId: string; method: string; }; export declare class EthrSchema { private schemaRegistry; private fileServerUrl; private accessToken; private schemaManagerContractAddress; private rpcUrl; constructor({ schemaManagerContractAddress, rpcUrl, serverUrl, fileServerToken, signingKey, }: PolygonDidInitOptions); createSchema(did: string, schemaName: string, schema: object, address: string): Promise<{ did: string; schemaId: string; schemaTxnHash: any; tnxSchemaId?: undefined; schemaTxhash?: undefined; schemaState?: undefined; } | { tnxSchemaId: string; schemaTxhash: string; schemaState: { state: string; reason: string; }; did?: undefined; schemaId?: undefined; schemaTxnHash?: undefined; }>; getSchemaById(did: string, schemaId: string): Promise; private uploadSchemaFile; estimateTxFee(method: string, argument?: string[]): Promise; validateSchemaObject(json: Record): Promise; }