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 { Readable } from "svelte/store"; import * as zod_v4_core0 from "zod/v4/core"; import { StandardSchemaV1 } from "@standard-schema/spec"; //#region ../fragno/dist/client/client.svelte.d.ts //#region src/client/client.svelte.d.ts type FragnoSvelteHook<_TMethod extends "GET", TPath$1 extends string, TOutputSchema$1 extends StandardSchemaV1, TErrorCode$1 extends string, TQueryParameters$1 extends string> = (args?: { path?: MaybeExtractPathParamsOrWiden | ReadableAtom> | (() => string); query?: QueryParamsHint | ReadableAtom | (() => string)>; }) => { data: Readable>; loading: Readable; error: Readable | undefined>; }; type FragnoSvelteMutator<_TMethod extends NonGetHTTPMethod, TPath$1 extends string, TInputSchema$1 extends StandardSchemaV1 | undefined, TOutputSchema$1 extends StandardSchemaV1 | undefined, TErrorCode$1 extends string, TQueryParameters$1 extends string> = () => { mutate: (args: { body?: InferOr; path?: MaybeExtractPathParamsOrWiden | ReadableAtom | (() => string)>; query?: QueryParamsHint | ReadableAtom | (() => string)>; }) => Promise>; loading: Readable; error: Readable | undefined>; data: Readable>; }; //#endregion //#region src/client/svelte.d.ts declare function createTelegramFragmentClient(config?: FragnoPublicClientConfig): { useCommands: FragnoSvelteHook<"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: FragnoSvelteMutator>; 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: FragnoSvelteHook<"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: FragnoSvelteHook<"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: FragnoSvelteHook<"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: FragnoSvelteMutator; }, zod_v4_core0.$strip> | undefined, zod.ZodObject<{ ok: zod.ZodBoolean; }, zod_v4_core0.$strip> | undefined, "TELEGRAM_API_ERROR", string>; useSendMessage: FragnoSvelteMutator>; 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: FragnoSvelteMutator>; 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=svelte.d.ts.map