import { a as FragnoPublicClientConfig, c as InferOr, d as MaybeExtractPathParamsOrWiden, f as QueryParamsHint, i as ReadableAtom, o as NonGetHTTPMethod, s as FragnoClientError } from "../client-BumUy6cu.js"; import * as zod from "zod"; import { Accessor } from "solid-js"; import * as zod_v4_core0 from "zod/v4/core"; import { StandardSchemaV1 } from "@standard-schema/spec"; //#region ../fragno/dist/client/solid.d.ts //#region src/client/solid.d.ts type FragnoSolidHook<_TMethod extends "GET", TPath$1 extends string, TOutputSchema$1 extends StandardSchemaV1, TErrorCode$1 extends string, TQueryParameters$1 extends string> = (args?: { path?: MaybeExtractPathParamsOrWiden | ReadableAtom>; query?: QueryParamsHint | ReadableAtom>; }) => { data: Accessor>; loading: Accessor; error: Accessor | undefined>; }; type FragnoSolidMutator<_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: (args: { body?: InferOr; path?: MaybeExtractPathParamsOrWiden | ReadableAtom>; query?: QueryParamsHint | ReadableAtom>; }) => Promise>; loading: Accessor; error: Accessor | undefined>; data: Accessor>; }; /** * Type guard to check if a value is a SolidJS Accessor. * * @private */ //#endregion //#region src/client/solid.d.ts declare function createTelegramFragmentClient(config?: FragnoPublicClientConfig): { useCommands: FragnoSolidHook<"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: FragnoSolidMutator>; 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: FragnoSolidHook<"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: FragnoSolidHook<"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: FragnoSolidHook<"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: FragnoSolidMutator; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ ok: zod.ZodBoolean; }, zod_v4_core0.$strip> | undefined, "TELEGRAM_API_ERROR", string>; useSendMessage: FragnoSolidMutator>; 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: FragnoSolidMutator>; 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=solid.d.ts.map