import type { PKCError } from "../../pkc-error.js"; import type { PKC } from "../../pkc/pkc.js"; import { CreatePKCWsServerOptionsSchema, SetNewSettingsPKCWsServerSchema, PKCWsServerSettingsSerializedSchema } from "./schema.js"; import { z } from "zod"; export type CreatePKCWsServerOptions = z.infer; export interface PKCWsServerClassOptions extends CreatePKCWsServerOptions { pkc: PKC; } export type SetNewSettingsPKCWsServer = z.infer; export type PKCWsServerSettingsSerialized = z.infer; export type JsonRpcSendNotificationOptions = { method: string; result: any; subscription: number; event: string; connectionId: string; }; export type PKCRpcServerEvents = { error: (error: PKCError | Error) => void; }; export interface RpcCommunityState { wasStarted: boolean; wasExplicitlyStopped: boolean; }