import { type SecureSecretStore } from '@dharma-ai-labs/agent-fabric-relay-client'; import { type DemoDeviceScope } from './demoEnrollment.js'; export type DemoPeerAction = { kind: 'role'; role: string; categories: string[]; } | { kind: 'peers'; } | { kind: 'ask'; recipientDeviceId: string; content: string; } | { kind: 'reply'; recipientDeviceId: string; questionId: string; content: string; } | { kind: 'inbox'; } | { kind: 'ack'; messageId: string; }; export interface DemoPeerDependencies { store?: SecureSecretStore; fetcher?: typeof fetch; } export declare function performDemoPeerAction(input: DemoDeviceScope, requested: DemoPeerAction | null, deps?: DemoPeerDependencies): Promise<{ stage: string; action: "role" | "peers" | "reply" | "ask" | "inbox" | "ack"; deviceId: string; repositoryId: string; } | { resumed: boolean; stage: string; action: "role" | "peers" | "reply" | "ask" | "inbox" | "ack"; deviceId: string; repositoryId: string; ok?: undefined; } | { ok: boolean; stage: string; }>; export declare function withDemoDeviceLock(input: DemoDeviceScope, work: () => Promise): Promise; //# sourceMappingURL=demoPeer.d.ts.map