import type { ToolDefinition } from '@deepseek-ai/dsh-tools'; import type { PartnerStore } from '../../store.js'; import type { WeixinChannel } from '../../domain.js'; import { type ApiSchema, type QqAction } from './action-catalog.js'; export interface QqActionReceipt { id: string; action: string; at: number; status: 'pending' | 'confirmed' | 'unknown' | 'failed'; error?: string; } export type QqActionCall = (channelId: string, action: string, params: Record, signal: AbortSignal, guard: () => void) => Promise; export declare function validateQqParams(schema: ApiSchema, value: unknown, path?: string): void; /** Open the canonical file and verify its actual descriptor stays inside the workspace. * Exclude private plugin state and credentials; APIs receive bytes, never bridge paths. */ export declare function qqLocalMedia(cwd: string, path: string, signal: AbortSignal): Promise<{ data: Buffer; name: string; }>; export declare function qqActionScope(store: PartnerStore, channel: WeixinChannel, action: QqAction, params: Record): void; export declare function qqActionTools(owner: string, store: PartnerStore, call: QqActionCall, stickersChanged?: (channelId: string) => void): ToolDefinition[]; //# sourceMappingURL=actions.d.ts.map