import { type ControlSendContext, type ControlSendOperation, type ControlSendRequest } from "@onebots/core/control"; import type { PersistedOperationObserver } from "../persisted-operation-observer.js"; export { ControlSendError } from "./send-contracts.js"; export interface ControlSendServiceOptions { directory: string; currentContext(): ControlSendContext | undefined; forward(request: ControlSendRequest): Promise<{ messageId: string | null; }>; onOperation?: PersistedOperationObserver; } export declare class ControlSendService { private readonly options; private readonly store; private active; private closed; private readonly pending; constructor(options: ControlSendServiceOptions); health(): { available: boolean; }; context(): ControlSendContext; /** 本机管理员可只读恢复旧设备的回执;不能借此重新派发或更改操作归属。 */ operation(ownerHash: string, id: string, localRecovery?: boolean): ControlSendOperation; send(ownerHash: string, input: unknown): Promise; close(): Promise; private execute; } //# sourceMappingURL=send-service.d.ts.map