import { z } from "astro/zod"; import { Loader } from "astro/loaders"; //#region src/schema.d.ts declare const TweetSchema: z.ZodObject<{ id: z.ZodString; tweet: z.ZodObject<{ id: z.ZodString; text: z.ZodString; edit_history_tweet_ids: z.ZodArray; attachments: z.ZodOptional>; poll_ids: z.ZodOptional>; }, z.core.$strip>>; author_id: z.ZodOptional; conversation_id: z.ZodOptional; created_at: z.ZodOptional; entities: z.ZodOptional>>; urls: z.ZodOptional; title: z.ZodOptional; description: z.ZodOptional; status: z.ZodOptional>; media_key: z.ZodOptional; images: z.ZodOptional>>; }, z.core.$strip>>>; hashtags: z.ZodOptional>>; cashtags: z.ZodOptional>>; mentions: z.ZodOptional>>; }, z.core.$strip>>; geo: z.ZodOptional>; }, z.core.$strip>; place_id: z.ZodString; }, z.core.$strip>>; in_reply_to_user_id: z.ZodOptional; lang: z.ZodOptional; public_metrics: z.ZodOptional; }, z.core.$strip>>; referenced_tweets: z.ZodOptional, z.ZodLiteral<"quoted">, z.ZodLiteral<"replied_to">]>; id: z.ZodString; }, z.core.$strip>>>>; source: z.ZodOptional; text_html: z.ZodString; text_markdown: z.ZodString; view_type: z.ZodEnum<{ none: "none"; media: "media"; link: "link"; }>; url_for_link_view: z.ZodOptional; }, z.core.$strip>; user: z.ZodUnion>; created_at: z.ZodOptional; description: z.ZodOptional; entities: z.ZodOptional>; }, z.core.$strip>>; description: z.ZodOptional>>; hashtags: z.ZodOptional; hashtag: z.ZodOptional; }, z.core.$strip>>>; cashtags: z.ZodOptional; cashtag: z.ZodOptional; }, z.core.$strip>>>; mentions: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>>; profile_image_url: z.ZodOptional; public_metrics: z.ZodOptional; following_count: z.ZodOptional; tweet_count: z.ZodOptional; listed_count: z.ZodOptional; like_count: z.ZodOptional; media_count: z.ZodOptional; }, z.core.$strip>>; url: z.ZodOptional; }, z.core.$strip>, z.ZodNull]>; place: z.ZodUnion>; country: z.ZodOptional; country_code: z.ZodOptional; geo: z.ZodOptional; properties: z.ZodAny; }, z.core.$strip>>; name: z.ZodOptional; place_type: z.ZodOptional; }, z.core.$strip>, z.ZodNull]>; media: z.ZodUnion, z.ZodLiteral<"animated_gif">, z.ZodLiteral<"photo">, z.ZodString]>; url: z.ZodOptional; preview_image_url: z.ZodOptional; width: z.ZodOptional; height: z.ZodOptional; alt_text: z.ZodOptional; duration_ms: z.ZodOptional; public_metrics: z.ZodOptional>; variants: z.ZodOptional; content_type: z.ZodUnion, z.ZodLiteral<"application/x-mpegURL">, z.ZodString]>; url: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>>, z.ZodNull]>; poll: z.ZodUnion>; duration_minutes: z.ZodOptional; end_datetime: z.ZodOptional; voting_status: z.ZodOptional; }, z.core.$strip>>, z.ZodNull]>; }, z.core.$strip>; //#endregion //#region src/config.d.ts declare const TweetsLoaderConfigSchema: z.ZodObject<{ ids: z.ZodArray; storage: z.ZodDefault>; storePath: z.ZodDefault; removeTrailingUrls: z.ZodDefault; linkTextType: z.ZodDefault>; newlineHandling: z.ZodDefault>; authToken: z.ZodOptional; }, z.core.$strip>; type TweetsLoaderUserConfig = z.input; //#endregion //#region src/index.d.ts /** * Astro loader for loading tweets by ID. * * @see https://github.com/lin-stephanie/astro-loaders/tree/main/packages/astro-loader-tweets */ declare function tweetsLoader(userConfig: TweetsLoaderUserConfig): Loader & { schema: typeof TweetSchema; }; //#endregion export { TweetSchema, type TweetsLoaderUserConfig, tweetsLoader };