import Anthropic from "@anthropic-ai/sdk"; import { type Encodable } from "@automate.ax/codec"; import type { CamelCasedPropertiesDeep } from "type-fest"; import * as z from "zod"; /** Camel-cased, codec-safe form of an official Anthropic SDK value. */ export type AnthropicValue = CamelCasedPropertiesDeep & Encodable; /** Remaps Anthropic's bracketed timestamp filters to public camelCase keys. */ type RemapAnthropicQueryKeys = { [TKey in keyof T as TKey extends `created_at[${infer TOperator}]` ? `createdAt${Capitalize}` : TKey]: T[TKey]; }; /** Camel-cased official Anthropic parameter type accepted by an action. */ export type AnthropicInput = { [TKey in keyof CamelCasedPropertiesDeep>>]: CamelCasedPropertiesDeep>>[TKey]; }; /** * Creates an authenticated Managed Agents client with bounded provider calls. * * @param secret - Resolved Anthropic account secret. */ export declare function getAnthropicApi(secret: Record): Anthropic; /** Runtime schema for an encodable Anthropic response. */ export declare function anthropicOutputSchema(): z.ZodType>; /** * Runtime schema for a camel-cased Anthropic parameter object. * * @param schema - Additional public input validation. * @param allowedKeys - Complete public top-level key set. */ export declare function anthropicInputSchema(schema: z.ZodType, allowedKeys: readonly string[]): z.ZodType>; /** * Converts public camelCase input to Anthropic's wire keys. * * @param value - Public action input. */ export declare function toAnthropic(value: AnthropicInput): T; /** * Converts an Anthropic response to stable public camelCase keys. * * @param value - Official client response. */ export declare function fromAnthropic(value: T): AnthropicValue; /** * Returns a provider page without exposing SDK pagination objects. * * @param page - Official client page. * @param page.data - Page resources. * @param page.next_page - Forward cursor. * @param page.prev_page - Backward cursor. */ export declare function fromAnthropicPage(page: { data: T[]; next_page?: string | null; prev_page?: string | null; }): AnthropicValue<{ prev_page?: string | null | undefined; data: T[]; next_page: string | null; }>; export {}; //# sourceMappingURL=lib.d.ts.map