import { a as FragnoClientError, c as InferOr, d as MaybeExtractPathParamsOrWiden, f as QueryParamsHint, i as ReadableAtom, l as ExtractPathParamsOrWiden, o as NonGetHTTPMethod, r as FetcherValue, s as FragnoPublicClientConfig, u as HasPathParams } from "../client-Bk-J98pf.js"; import * as zod from "zod"; import "react"; import * as zod_v4_core0 from "zod/v4/core"; import * as _standard_schema_spec0 from "@standard-schema/spec"; import { StandardSchemaV1 } from "@standard-schema/spec"; //#region ../fragno/dist/client/react.d.ts //#region src/client/react.d.ts type FragnoReactHook<_TMethod extends "GET", TPath$1 extends string, TOutputSchema$1 extends StandardSchemaV1, TErrorCode$1 extends string, TQueryParameters$1 extends string> = (args?: { path?: MaybeExtractPathParamsOrWiden>; query?: QueryParamsHint>; }) => FetcherValue, FragnoClientError>>; type FragnoReactMutator<_TMethod extends NonGetHTTPMethod, TPath$1 extends string, TInputSchema extends StandardSchemaV1 | undefined, TOutputSchema$1 extends StandardSchemaV1 | undefined, TErrorCode$1 extends string, TQueryParameters$1 extends string> = () => { mutate: ({ body, path, query }: { body?: InferOr; path?: HasPathParams extends true ? ExtractPathParamsOrWiden> : undefined; query?: QueryParamsHint>; }) => Promise>; loading?: boolean | undefined; error?: FragnoClientError[number]> | undefined; data?: InferOr | undefined; }; /** * Type helper that unwraps any Store fields of the object into StoreValues */ //#endregion //#region src/client/react.d.ts declare function createPiFragmentClient(config?: FragnoPublicClientConfig): { useSessions: FragnoReactHook<"GET", "/sessions", zod.ZodArray; status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: zod.ZodString; workflowInstanceId: zod.ZodNullable; steeringMode: zod.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: zod.ZodNullable; tags: zod.ZodArray; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>>, string, "limit">; useSession: FragnoReactHook<"GET", "/sessions/:sessionId", zod.ZodObject<{ id: zod.ZodString; name: zod.ZodNullable; status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: zod.ZodString; workflowInstanceId: zod.ZodNullable; steeringMode: zod.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: zod.ZodNullable; tags: zod.ZodArray; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; workflow: zod.ZodObject<{ status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; error: zod.ZodOptional>; output: zod.ZodOptional; }, zod_v4_core0.$strip>; messages: zod.ZodArray; content: zod.ZodUnion; text: zod.ZodString; textSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"thinking">; thinking: zod.ZodString; thinkingSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"image">; data: zod.ZodString; mimeType: zod.ZodString; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"toolCall">; id: zod.ZodString; name: zod.ZodString; arguments: zod.ZodRecord; thoughtSignature: zod.ZodOptional; }, zod_v4_core0.$strip>]>>]>; timestamp: zod.ZodNumber; }, zod_v4_core0.$strip>, zod.ZodObject<{ role: zod.ZodLiteral<"assistant">; content: zod.ZodArray; text: zod.ZodString; textSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"thinking">; thinking: zod.ZodString; thinkingSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"image">; data: zod.ZodString; mimeType: zod.ZodString; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"toolCall">; id: zod.ZodString; name: zod.ZodString; arguments: zod.ZodRecord; thoughtSignature: zod.ZodOptional; }, zod_v4_core0.$strip>]>>; api: zod.ZodString; provider: zod.ZodString; model: zod.ZodString; usage: zod.ZodObject<{ input: zod.ZodNumber; output: zod.ZodNumber; cacheRead: zod.ZodNumber; cacheWrite: zod.ZodNumber; totalTokens: zod.ZodNumber; cost: zod.ZodObject<{ input: zod.ZodNumber; output: zod.ZodNumber; cacheRead: zod.ZodNumber; cacheWrite: zod.ZodNumber; total: zod.ZodNumber; }, zod_v4_core0.$strip>; }, zod_v4_core0.$strip>; stopReason: zod.ZodString; errorMessage: zod.ZodOptional; timestamp: zod.ZodNumber; }, zod_v4_core0.$strip>, zod.ZodObject<{ role: zod.ZodLiteral<"toolResult">; toolCallId: zod.ZodString; toolName: zod.ZodString; content: zod.ZodArray; text: zod.ZodString; textSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"thinking">; thinking: zod.ZodString; thinkingSignature: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"image">; data: zod.ZodString; mimeType: zod.ZodString; }, zod_v4_core0.$strip>, zod.ZodObject<{ type: zod.ZodLiteral<"toolCall">; id: zod.ZodString; name: zod.ZodString; arguments: zod.ZodRecord; thoughtSignature: zod.ZodOptional; }, zod_v4_core0.$strip>]>>; details: zod.ZodOptional; isError: zod.ZodBoolean; timestamp: zod.ZodNumber; }, zod_v4_core0.$strip>]>>; trace: zod.ZodArray; }, zod_v4_core0.$strip>>; summaries: zod.ZodArray; summary: zod.ZodNullable; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, "WORKFLOWS_REQUIRED" | "SESSION_NOT_FOUND" | "WORKFLOW_INSTANCE_MISSING", string>; useCreateSession: FragnoReactMutator | zod.ZodObject<{ agent: zod.ZodString; name: zod.ZodOptional; metadata: zod.ZodOptional; tags: zod.ZodOptional>; steeringMode: zod.ZodOptional>; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ id: zod.ZodString; name: zod.ZodNullable; status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: zod.ZodString; workflowInstanceId: zod.ZodNullable; steeringMode: zod.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: zod.ZodNullable; tags: zod.ZodArray; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip> | zod.ZodArray; status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; agent: zod.ZodString; workflowInstanceId: zod.ZodNullable; steeringMode: zod.ZodEnum<{ all: "all"; "one-at-a-time": "one-at-a-time"; }>; metadata: zod.ZodNullable; tags: zod.ZodArray; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>> | undefined, string, string>; useSendMessage: FragnoReactMutator; steeringMode: zod.ZodOptional>; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ status: zod.ZodEnum<{ active: "active"; paused: "paused"; errored: "errored"; terminated: "terminated"; complete: "complete"; waiting: "waiting"; }>; }, zod_v4_core0.$strip> | undefined, "WORKFLOWS_REQUIRED" | "SESSION_NOT_FOUND" | "WORKFLOW_INSTANCE_MISSING", string>; }; //#endregion export { createPiFragmentClient }; //# sourceMappingURL=react.d.ts.map