import { type Context, defineService, type ReplicatedState } from "@earendil-works/chord"; export interface ExampleFacetReply { readonly message: string; readonly workerActivations: number; } export interface ExampleFacetService { readonly workerActivations: ReplicatedState<{ count: number }>; greet(input: { readonly name: string }, context: Context): Promise; } export const ExampleFacetService = defineService("pi.example-plugin.greeting");