import { type Ed25519Keypair } from '@origintrail-official/dkg-core'; import { AsyncLiftRunner, type AsyncLiftPublisher, type PublishOptions, type WorkspacePublicSnapshotStore } from '@origintrail-official/dkg-publisher'; import { type TripleStore } from '@origintrail-official/dkg-storage'; import { type DkgConfig } from './config.js'; export interface PublisherRuntime { readonly runner: AsyncLiftRunner; readonly publisher: AsyncLiftPublisher; readonly walletIds: string[]; readonly stop: () => Promise; } export interface PublisherInspector { readonly publisher: AsyncLiftPublisher; readonly stop: () => Promise; } interface ACKTransportFactory { publisherPeerId: string; gossipPublish: (topic: string, data: Uint8Array) => Promise; sendP2P: (peerId: string, protocol: string, data: Uint8Array) => Promise; getConnectedCorePeers: () => string[]; log?: (message: string) => void; } export declare function startPublisherRuntimeIfEnabled(args: { dataDir: string; config: DkgConfig; store: TripleStore; keypair: Ed25519Keypair; chainBase?: { rpcUrl: string; rpcUrls?: string[]; hubAddress: string; tokenAddress?: string; chainId?: string; }; log: (message: string) => void; ackTransportFactory?: () => ACKTransportFactory; }): Promise; export declare function createPublisherRuntime(args: { dataDir: string; config: DkgConfig; pollIntervalMs?: number; errorBackoffMs?: number; maxRetries?: number; }): Promise; export declare function createPublisherInspector(args: { dataDir: string; config: DkgConfig; }): Promise; export declare function createPublisherInspectorFromStore(store: TripleStore, closeStoreOnStop?: boolean, publicSnapshotStore?: WorkspacePublicSnapshotStore): PublisherInspector; export declare function createPublisherControlFromStore(store: TripleStore, publicSnapshotStore?: WorkspacePublicSnapshotStore): AsyncLiftPublisher; export declare function createPublisherRuntimeFromAgent(args: { dataDir: string; store: TripleStore; keypair: Ed25519Keypair; chainBase?: { rpcUrl: string; rpcUrls?: string[]; hubAddress: string; tokenAddress?: string; chainId?: string; }; pollIntervalMs?: number; errorBackoffMs?: number; maxRetries?: number; config?: Pick; ackTransportFactory?: () => ACKTransportFactory; v10ACKProviderFactory?: () => PublishOptions['v10ACKProvider']; }): Promise; export declare function parsePositiveMsOption(value: string, optionName: '--poll-interval' | '--error-backoff'): number; export declare function parsePositiveIntegerOption(value: string, optionName: string): number; export declare function createPublicSnapshotStore(dataDir: string, config?: Pick): WorkspacePublicSnapshotStore | undefined; export {}; //# sourceMappingURL=publisher-runner.d.ts.map