import type { InferSchema, Schema } from "../extensions/schema/index.js"; import type { Tool } from "./types.js"; /** Default value for sleep tool max seconds. */ export declare const DEFAULT_SLEEP_TOOL_MAX_SECONDS = 60; /** Public API contract for sleep tool wait. */ export type SleepToolWait = (milliseconds: number) => Promise | void; /** Options accepted by create sleep tool. */ export type CreateSleepToolOptions = { maxSeconds?: number; wait?: SleepToolWait; }; interface SleepToolInputShape { seconds: number; } /** * Build the sleep-tool input schema parameterised by `maxSeconds`. * * Resolves the `SchemaValidator` through the shared fallback path (rather than going * through `defineSchema`) because `defineSchema` produces a memoized * zero-arg getter — incompatible with per-instance parametric schemas. */ declare function createSleepToolInputSchema(maxSeconds: number): Schema; /** Input payload for sleep tool. */ export type SleepToolInput = InferSchema>; /** Output from sleep tool. */ export type SleepToolOutput = { sleptFor: number; message: string; }; /** Create sleep tool. */ export declare function createSleepTool(options?: CreateSleepToolOptions): Tool; /** * Default sleep tool (max 60 s) exposed as a property accessor so the * underlying `tool({...})` materialization is deferred until first use. * Preserves the existing `sleepTool.execute(...)` call shape. */ export declare const sleepTool: Tool; export {}; //# sourceMappingURL=sleep.d.ts.map