import { InputRequest, Model, ModelReply, SessionStore, TurnError, TurnEvent, TurnTrigger } from "./agent-runtime.js"; import { AgentDefinition, ChannelContext } from "./agent-config.js"; //#region src/test.d.ts export declare function signSlackRequest(signingSecret: string, body: string, opts?: { ts?: string; url?: string; }): Promise; export declare function signCrispRequest(signingSecret: string, body: string, opts?: { ts?: string; url?: string; }): Promise; export declare function turnEvents(opts?: { turnId?: string; trigger?: TurnTrigger; reasoning?: string[]; deltas?: string[]; text?: string; fail?: string | TurnError; input?: InputRequest; }): TurnEvent[]; export type RunOpts = NonNullable[1]>; export type ResumeRequest = Parameters>[0]; export type TestContext = ChannelContext & { waitUntil: NonNullable; calls: { run: { message: string; opts?: RunOpts; }[]; runStream: { message: string; opts?: RunOpts; }[]; runDetached: { message: string; opts?: RunOpts; }[]; resumeStream: ResumeRequest[]; waitUntil: Promise[]; }; flush: () => Promise; }; export declare function makeTestContext(opts?: { reply?: string | ((message: string, o?: RunOpts) => string | Promise); streamEvents?: TurnEvent[] | ((message: string, o?: RunOpts) => TurnEvent[]); detached?: boolean | { turnId?: string; }; resumeEvents?: TurnEvent[] | ((r: ResumeRequest) => TurnEvent[]); services?: unknown; agent?: Partial; }): TestContext; export declare function memorySessionStore(): SessionStore; export type ScriptedReply = { reasoning?: string[]; deltas?: string[]; reply: ModelReply; }; export type ConformanceOptions = { usesProviderState?: boolean; streaming?: boolean; }; export type ConformanceReport = { passed: string[]; skipped: string[]; failed: { scenario: string; error: string; }[]; }; export declare function runAdapterConformance(makeModel: (script: ScriptedReply[], capture: (wireRequest: unknown) => void) => Model | Promise, opts?: ConformanceOptions): Promise; //#endregion