import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { DWNPermission, DWNProtocol, DWNRecord, VaultState } from "./state_pb.js"; /** * GenesisState defines the module genesis state * * @generated from message dwn.v1.GenesisState */ export declare class GenesisState extends Message { /** * Params defines all the parameters of the module. * * @generated from field: dwn.v1.Params params = 1; */ params?: Params; /** * DWN Records * * @generated from field: repeated dwn.v1.DWNRecord records = 2; */ records: DWNRecord[]; /** * DWN Protocols * * @generated from field: repeated dwn.v1.DWNProtocol protocols = 3; */ protocols: DWNProtocol[]; /** * DWN Permissions * * @generated from field: repeated dwn.v1.DWNPermission permissions = 4; */ permissions: DWNPermission[]; /** * Vaults * * @generated from field: repeated dwn.v1.VaultState vaults = 5; */ vaults: VaultState[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.GenesisState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState; static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState; static fromJsonString(jsonString: string, options?: Partial): GenesisState; static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean; } /** * Params defines the set of module parameters. * * @generated from message dwn.v1.Params */ export declare class Params extends Message { /** * Maximum size for DWN record data in bytes * * @generated from field: uint64 max_record_size = 1; */ maxRecordSize: bigint; /** * Maximum number of protocols per DWN * * @generated from field: uint32 max_protocols_per_dwn = 2; */ maxProtocolsPerDwn: number; /** * Maximum number of permissions per DWN * * @generated from field: uint32 max_permissions_per_dwn = 3; */ maxPermissionsPerDwn: number; /** * Enable vault creation * * @generated from field: bool vault_creation_enabled = 4; */ vaultCreationEnabled: boolean; /** * Minimum vault refresh interval in blocks * * @generated from field: uint64 min_vault_refresh_interval = 5; */ minVaultRefreshInterval: bigint; /** * Encryption configuration * * @generated from field: bool encryption_enabled = 6; */ encryptionEnabled: boolean; /** * Key rotation interval in days * * @generated from field: uint32 key_rotation_days = 7; */ keyRotationDays: number; /** * Minimum validators required for key generation (percentage of active set) * * @generated from field: uint32 min_validators_for_key_gen = 8; */ minValidatorsForKeyGen: number; /** * Protocols that require encryption * * @generated from field: repeated string encrypted_protocols = 9; */ encryptedProtocols: string[]; /** * Schemas that require encryption * * @generated from field: repeated string encrypted_schemas = 10; */ encryptedSchemas: string[]; /** * Enable single-node fallback for development * * @generated from field: bool single_node_fallback = 11; */ singleNodeFallback: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.Params"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Params; static fromJson(jsonValue: JsonValue, options?: Partial): Params; static fromJsonString(jsonString: string, options?: Partial): Params; static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean; } /** * @generated from message dwn.v1.IPFSStatus */ export declare class IPFSStatus extends Message { /** * @generated from field: string peer_id = 1; */ peerId: string; /** * @generated from field: string peer_name = 2; */ peerName: string; /** * @generated from field: string peer_type = 3; */ peerType: string; /** * @generated from field: string version = 4; */ version: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.IPFSStatus"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IPFSStatus; static fromJson(jsonValue: JsonValue, options?: Partial): IPFSStatus; static fromJsonString(jsonString: string, options?: Partial): IPFSStatus; static equals(a: IPFSStatus | PlainMessage | undefined, b: IPFSStatus | PlainMessage | undefined): boolean; } //# sourceMappingURL=genesis_pb.d.ts.map