import type { Schema } from "avsc"; import { DSNPParquetSchema } from "@dsnp/schemas/types/dsnp-parquet.js"; import userPublicFollows from "./userPublicFollows.js"; import userPrivateFollows from "./userPrivateFollows.js"; import userPrivateConnections from "./userPrivateConnections.js"; declare const broadcast: DSNPParquetSchema; declare const reaction: DSNPParquetSchema; declare const reply: DSNPParquetSchema; declare const tombstone: DSNPParquetSchema; declare const update: DSNPParquetSchema; declare const profile: Schema; declare const publicKey: Schema; export { broadcast, profile, reaction, reply, tombstone, publicKey, userPrivateFollows, userPrivateConnections, userPublicFollows, update, }; type PayloadLocation = "IPFS" | "OnChain" | "Itemized" | "Paginated"; type Settings = "AppendOnly" | "SignatureRequired"; export type DSNPVersion = "1.1" | "1.2" | "1.3"; type ParquetDeploy = { model: DSNPParquetSchema; modelType: "Parquet"; payloadLocation: "IPFS"; settings: []; dsnpVersion: DSNPVersion; }; type AvroDeploy = { model: Schema; modelType: "AvroBinary"; payloadLocation: PayloadLocation; settings: Settings[]; dsnpVersion: DSNPVersion; }; export type Deploy = ParquetDeploy | AvroDeploy; export type ParquetSchemaName = "broadcast" | "reaction" | "reply" | "tombstone" | "update" | "user-attribute-set" | "dsnp-content-attribute-set" | "ext-content-attribute-set"; export type AvroSchemaName = "public-key-key-agreement" | "public-key-assertion-method" | "public-follows" | "private-follows" | "private-connections" | "profile-resources"; export type SchemaName = ParquetSchemaName | AvroSchemaName; export declare const schemas: Map; export declare const getSchema: (name: SchemaName) => Deploy | null; export type SchemaMapping = { [schemaName: string]: { [version: string]: number; }; }; export declare const GENESIS_HASH_TESTNET_PASEO = "0x203c6838fc78ea3660a2f298a58d859519c72a5efdc0f194abd6f0d5ce1838e0"; export declare const GENESIS_HASH_MAINNET = "0x4a587bf17a404e3572747add7aab7bbe56e805a5479c6c436f07f36fcc8d3ae1"; /** * Gets the schemaId for for given DSNP type and version and genesis hash. * If version is unspecified, the latest version is returned. (You probably * only need version if you're migrating.) * If genesis hash is unspecified, the mainnet genesis hash and schema * numbers will be used. */ export declare const getSchemaId: (schemaName: SchemaName, dsnpVersion?: DSNPVersion, genesisHash?: string) => number; export declare const setSchemaMapping: (genesisHash: string, schemaMapping: SchemaMapping) => void; declare const _default: { schemas: Map; getSchema: (name: SchemaName) => Deploy | null; getSchemaId: (schemaName: SchemaName, dsnpVersion?: DSNPVersion | undefined, genesisHash?: string | undefined) => number; setSchemaMapping: (genesisHash: string, schemaMapping: SchemaMapping) => void; }; export default _default;