import { a as FragnoPublicClientConfig, c as InferOr, d as MaybeExtractPathParamsOrWiden, f as QueryParamsHint, i as ReadableAtom, l as ExtractPathParamsOrWiden, o as NonGetHTTPMethod, r as FetcherValue, s as FragnoClientError, u as HasPathParams } from "../client-BumUy6cu.js"; import * as zod from "zod"; import "react"; import * as zod_v4_core0 from "zod/v4/core"; 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 createTelegramFragmentClient(config?: FragnoPublicClientConfig): { useCommands: FragnoReactHook<"GET", "/commands", zod.ZodObject<{ commands: zod.ZodArray; scopes: zod.ZodArray>; enabled: zod.ZodOptional; effectiveScopes: zod.ZodOptional>>; binding: zod.ZodOptional; scopes: zod.ZodOptional>>; }, zod_v4_core0.$strip>>>; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, "chat_not_found", "chatId">; useBindCommand: FragnoReactMutator>; scopes: zod.ZodOptional>>; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ chatId: zod.ZodString; commandName: zod.ZodString; enabled: zod.ZodBoolean; scopes: zod.ZodOptional>>; }, zod_v4_core0.$strip> | undefined, "chat_not_found" | "command_not_found" | "invalid_scopes", string>; useChats: FragnoReactHook<"GET", "/chats", zod.ZodArray; title: zod.ZodNullable; username: zod.ZodNullable; isForum: zod.ZodBoolean; commandBindings: zod.ZodNullable; scopes: zod.ZodOptional>>; }, zod_v4_core0.$strip>>>; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>>, string, "type">; useChat: FragnoReactHook<"GET", "/chats/:chatId", zod.ZodObject<{ chat: zod.ZodObject<{ id: zod.ZodString; type: zod.ZodEnum<{ private: "private"; group: "group"; supergroup: "supergroup"; channel: "channel"; }>; title: zod.ZodNullable; username: zod.ZodNullable; isForum: zod.ZodBoolean; commandBindings: zod.ZodNullable; scopes: zod.ZodOptional>>; }, zod_v4_core0.$strip>>>; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>; members: zod.ZodArray; leftAt: zod.ZodNullable; user: zod.ZodNullable; firstName: zod.ZodString; lastName: zod.ZodNullable; isBot: zod.ZodBoolean; languageCode: zod.ZodNullable; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>>; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, "chat_not_found", string>; useChatMessages: FragnoReactHook<"GET", "/chats/:chatId/messages", zod.ZodObject<{ messages: zod.ZodArray; senderChatId: zod.ZodNullable; replyToMessageId: zod.ZodNullable; messageType: zod.ZodEnum<{ message: "message"; edited_message: "edited_message"; channel_post: "channel_post"; }>; text: zod.ZodNullable; attachments: zod.ZodArray; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; thumbnail: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; sizes: zod.ZodArray; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, zod.ZodObject<{ kind: zod.ZodLiteral<"voice">; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; duration: zod.ZodNumber; mimeType: zod.ZodOptional; }, zod_v4_core0.$strip>, zod.ZodObject<{ kind: zod.ZodLiteral<"audio">; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; duration: zod.ZodNumber; performer: zod.ZodOptional; title: zod.ZodOptional; fileName: zod.ZodOptional; mimeType: zod.ZodOptional; thumbnail: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, zod.ZodObject<{ kind: zod.ZodLiteral<"document">; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; fileName: zod.ZodOptional; mimeType: zod.ZodOptional; thumbnail: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, zod.ZodObject<{ kind: zod.ZodLiteral<"video">; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; duration: zod.ZodNumber; fileName: zod.ZodOptional; mimeType: zod.ZodOptional; thumbnail: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, zod.ZodObject<{ kind: zod.ZodLiteral<"video_note">; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; length: zod.ZodNumber; duration: zod.ZodNumber; thumbnail: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, zod.ZodObject<{ kind: zod.ZodLiteral<"sticker">; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; emoji: zod.ZodOptional; setName: zod.ZodOptional; isAnimated: zod.ZodBoolean; isVideo: zod.ZodBoolean; thumbnail: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>, zod.ZodObject<{ kind: zod.ZodLiteral<"animation">; fileId: zod.ZodString; fileUniqueId: zod.ZodString; fileSize: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; duration: zod.ZodNumber; fileName: zod.ZodOptional; mimeType: zod.ZodOptional; thumbnail: zod.ZodOptional; width: zod.ZodNumber; height: zod.ZodNumber; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>], "kind">>; payload: zod.ZodNullable; sentAt: zod.ZodDate; editedAt: zod.ZodNullable; commandName: zod.ZodNullable; fromUser: zod.ZodNullable; firstName: zod.ZodString; lastName: zod.ZodNullable; isBot: zod.ZodBoolean; languageCode: zod.ZodNullable; createdAt: zod.ZodDate; updatedAt: zod.ZodDate; }, zod_v4_core0.$strip>>; }, zod_v4_core0.$strip>>; cursor: zod.ZodOptional; hasNextPage: zod.ZodBoolean; }, zod_v4_core0.$strip>, string, "pageSize" | "cursor" | "order">; useChatAction: FragnoReactMutator; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ ok: zod.ZodBoolean; }, zod_v4_core0.$strip> | undefined, "TELEGRAM_API_ERROR", string>; useSendMessage: FragnoReactMutator>; disableWebPagePreview: zod.ZodOptional; replyToMessageId: zod.ZodOptional>; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ ok: zod.ZodBoolean; queued: zod.ZodBoolean; }, zod_v4_core0.$strip> | undefined, string, string>; useEditMessage: FragnoReactMutator>; disableWebPagePreview: zod.ZodOptional; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ ok: zod.ZodBoolean; queued: zod.ZodBoolean; }, zod_v4_core0.$strip> | undefined, "INVALID_MESSAGE_ID", string>; }; //#endregion export { createTelegramFragmentClient }; //# sourceMappingURL=react.d.ts.map