import { z, ZodRawShape, ZodTypeAny } from 'zod'; declare const baseAuthorsSchema: z.ZodObject<{ name: z.ZodString; profile_image: z.ZodNullable; cover_image: z.ZodNullable; bio: z.ZodNullable; website: z.ZodNullable; location: z.ZodNullable; facebook: z.ZodNullable; twitter: z.ZodNullable; count: z.ZodOptional>; url: z.ZodString; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; }, { url: string; id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; }>; declare const basePagesSchema: z.ZodObject<{ visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; custom_template: z.ZodNullable; canonical_url: z.ZodNullable; authors: z.ZodOptional; meta_description: z.ZodNullable; name: z.ZodString; profile_image: z.ZodNullable; cover_image: z.ZodNullable; bio: z.ZodNullable; website: z.ZodNullable; location: z.ZodNullable; facebook: z.ZodNullable; twitter: z.ZodNullable; count: z.ZodOptional>; url: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }>, "many">>; tags: z.ZodOptional; feature_image: z.ZodNullable; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; canonical_url: z.ZodNullable; accent_color: z.ZodNullable; url: z.ZodString; created_at: z.ZodOptional>; updated_at: z.ZodOptional>; count: z.ZodOptional>; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }>, "many">>; primary_author: z.ZodOptional; meta_description: z.ZodNullable; name: z.ZodString; profile_image: z.ZodNullable; cover_image: z.ZodNullable; bio: z.ZodNullable; website: z.ZodNullable; location: z.ZodNullable; facebook: z.ZodNullable; twitter: z.ZodNullable; count: z.ZodOptional>; url: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }>>>; primary_tag: z.ZodOptional; feature_image: z.ZodNullable; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; canonical_url: z.ZodNullable; accent_color: z.ZodNullable; url: z.ZodString; created_at: z.ZodOptional>; updated_at: z.ZodOptional>; count: z.ZodOptional>; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }>>>; url: z.ZodString; excerpt: z.ZodOptional>; reading_time: z.ZodDefault>; created_at: z.ZodString; updated_at: z.ZodOptional>; published_at: z.ZodNullable; email_subject: z.ZodOptional>; is_page: z.ZodDefault; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; title: z.ZodString; html: z.ZodOptional>; plaintext: z.ZodOptional>; comment_id: z.ZodNullable; feature_image: z.ZodNullable; feature_image_alt: z.ZodNullable; feature_image_caption: z.ZodNullable; featured: z.ZodBoolean; custom_excerpt: z.ZodNullable; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; custom_excerpt: string | null; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; created_at: string; title: string; comment_id: string | null; feature_image_alt: string | null; feature_image_caption: string | null; featured: boolean; custom_template: string | null; reading_time: number; published_at: string | null; is_page: boolean; authors?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }[] | undefined; tags?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }[] | undefined; primary_author?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; } | null | undefined; primary_tag?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; } | null | undefined; excerpt?: string | null | undefined; updated_at?: string | null | undefined; email_subject?: string | null | undefined; html?: string | null | undefined; plaintext?: string | null | undefined; }, { url: string; id: string; slug: string; custom_excerpt: string | null; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; created_at: string; title: string; comment_id: string | null; feature_image_alt: string | null; feature_image_caption: string | null; featured: boolean; custom_template: string | null; published_at: string | null; authors?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }[] | undefined; tags?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }[] | undefined; primary_author?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; } | null | undefined; primary_tag?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; } | null | undefined; excerpt?: string | null | undefined; reading_time?: number | undefined; updated_at?: string | null | undefined; email_subject?: string | null | undefined; is_page?: boolean | undefined; html?: string | null | undefined; plaintext?: string | null | undefined; }>; declare const basePostsSchema: z.ZodObject<{ visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; custom_template: z.ZodNullable; canonical_url: z.ZodNullable; authors: z.ZodOptional; meta_description: z.ZodNullable; name: z.ZodString; profile_image: z.ZodNullable; cover_image: z.ZodNullable; bio: z.ZodNullable; website: z.ZodNullable; location: z.ZodNullable; facebook: z.ZodNullable; twitter: z.ZodNullable; count: z.ZodOptional>; url: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }>, "many">>; tags: z.ZodOptional; feature_image: z.ZodNullable; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; canonical_url: z.ZodNullable; accent_color: z.ZodNullable; url: z.ZodString; created_at: z.ZodOptional>; updated_at: z.ZodOptional>; count: z.ZodOptional>; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }>, "many">>; primary_author: z.ZodOptional; meta_description: z.ZodNullable; name: z.ZodString; profile_image: z.ZodNullable; cover_image: z.ZodNullable; bio: z.ZodNullable; website: z.ZodNullable; location: z.ZodNullable; facebook: z.ZodNullable; twitter: z.ZodNullable; count: z.ZodOptional>; url: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }, { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }>>>; primary_tag: z.ZodOptional; feature_image: z.ZodNullable; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; canonical_url: z.ZodNullable; accent_color: z.ZodNullable; url: z.ZodString; created_at: z.ZodOptional>; updated_at: z.ZodOptional>; count: z.ZodOptional>; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }>>>; url: z.ZodString; excerpt: z.ZodNullable; reading_time: z.ZodDefault>; created_at: z.ZodString; updated_at: z.ZodOptional>; published_at: z.ZodNullable; email_subject: z.ZodOptional>; is_page: z.ZodDefault; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; title: z.ZodString; html: z.ZodOptional>; plaintext: z.ZodOptional>; comment_id: z.ZodNullable; feature_image: z.ZodNullable; feature_image_alt: z.ZodNullable; feature_image_caption: z.ZodNullable; featured: z.ZodBoolean; custom_excerpt: z.ZodNullable; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; excerpt: string | null; custom_excerpt: string | null; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; created_at: string; title: string; comment_id: string | null; feature_image_alt: string | null; feature_image_caption: string | null; featured: boolean; custom_template: string | null; reading_time: number; published_at: string | null; is_page: boolean; authors?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }[] | undefined; tags?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }[] | undefined; primary_author?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; } | null | undefined; primary_tag?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; } | null | undefined; updated_at?: string | null | undefined; email_subject?: string | null | undefined; html?: string | null | undefined; plaintext?: string | null | undefined; }, { url: string; id: string; slug: string; excerpt: string | null; custom_excerpt: string | null; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; created_at: string; title: string; comment_id: string | null; feature_image_alt: string | null; feature_image_caption: string | null; featured: boolean; custom_template: string | null; published_at: string | null; authors?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; }[] | undefined; tags?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }[] | undefined; primary_author?: { id: string; slug: string; meta_title: string | null; meta_description: string | null; name: string; profile_image: string | null; cover_image: string | null; bio: string | null; website: string | null; location: string | null; facebook: string | null; twitter: string | null; count?: { posts: number; } | undefined; url?: string | null | undefined; } | null | undefined; primary_tag?: { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; } | null | undefined; reading_time?: number | undefined; updated_at?: string | null | undefined; email_subject?: string | null | undefined; is_page?: boolean | undefined; html?: string | null | undefined; plaintext?: string | null | undefined; }>; declare const baseSettingsSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodString; logo: z.ZodNullable; icon: z.ZodNullable; accent_color: z.ZodNullable; cover_image: z.ZodNullable; facebook: z.ZodNullable; twitter: z.ZodNullable; lang: z.ZodString; timezone: z.ZodString; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; navigation: z.ZodArray, "many">; secondary_navigation: z.ZodArray, "many">; meta_title: z.ZodNullable; meta_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; members_support_address: z.ZodString; url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; cover_image: string | null; facebook: string | null; twitter: string | null; description: string; accent_color: string | null; title: string; logo: string | null; icon: string | null; lang: string; timezone: string; navigation: { url: string; label: string; }[]; secondary_navigation: { url: string; label: string; }[]; members_support_address: string; }, { url: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; cover_image: string | null; facebook: string | null; twitter: string | null; description: string; accent_color: string | null; title: string; logo: string | null; icon: string | null; lang: string; timezone: string; navigation: { url: string; label: string; }[]; secondary_navigation: { url: string; label: string; }[]; members_support_address: string; }>; type HTTPClientOptions = { key: string; version: APICredentials["version"]; url: APICredentials["url"]; endpoint: "content" | "admin"; }; interface IHTTPClient { get baseURL(): URL | undefined; get jwt(): string | undefined; generateJWT(key: string): Promise; genHeaders(): Promise>; fetch({ resource, searchParams, options, pathnameIdentity, }: { resource: APIResource; searchParams?: URLSearchParams; options?: RequestInit; pathnameIdentity?: string; }): Promise; fetchRawResponse({ resource, searchParams, options, pathnameIdentity, }: { resource: APIResource; searchParams?: URLSearchParams; options?: RequestInit; pathnameIdentity?: string; }): Promise; } declare class HTTPClient implements IHTTPClient { protected config: Options; private _jwt; private _jwtExpiresAt; protected _baseURL: URL | undefined; constructor(config: Options); get baseURL(): URL | undefined; get jwt(): string | undefined; generateJWT(key: string): Promise; genHeaders(): Promise>; fetch({ resource, searchParams, options, pathnameIdentity, }: { resource: APIResource; searchParams?: URLSearchParams; options?: RequestInit; pathnameIdentity?: string; }): Promise; fetchRawResponse({ resource, searchParams, options, pathnameIdentity, }: { resource: APIResource; searchParams?: URLSearchParams; options?: RequestInit; pathnameIdentity?: string; }): Promise; } declare const ghostIdentitySchema: z.ZodObject<{ slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; slug: string; }, { id: string; slug: string; }>; declare const ghostIdentityInputSchema: z.ZodObject<{ slug: z.ZodOptional; id: z.ZodOptional; email: z.ZodOptional; }, "strip", z.ZodTypeAny, { slug?: string | undefined; id?: string | undefined; email?: string | undefined; }, { slug?: string | undefined; id?: string | undefined; email?: string | undefined; }>; type GhostIdentityInput = z.infer; type GhostIdentity = z.infer; declare const ghostMetaSchema: z.ZodObject<{ pagination: z.ZodObject<{ pages: z.ZodNumber; page: z.ZodNumber; limit: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"all">]>; total: z.ZodNumber; prev: z.ZodNullable; next: z.ZodNullable; }, "strip", z.ZodTypeAny, { pages: number; page: number; limit: number | "all"; total: number; prev: number | null; next: number | null; }, { pages: number; page: number; limit: number | "all"; total: number; prev: number | null; next: number | null; }>; }, "strip", z.ZodTypeAny, { pagination: { pages: number; page: number; limit: number | "all"; total: number; prev: number | null; next: number | null; }; }, { pagination: { pages: number; page: number; limit: number | "all"; total: number; prev: number | null; next: number | null; }; }>; type GhostMeta = z.infer; declare const ghostExcerptSchema: z.ZodObject<{ excerpt: z.ZodOptional; custom_excerpt: z.ZodOptional; }, "strip", z.ZodTypeAny, { excerpt?: string | undefined; custom_excerpt?: string | undefined; }, { excerpt?: string | undefined; custom_excerpt?: string | undefined; }>; declare const ghostCodeInjectionSchema: z.ZodObject<{ codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; }, "strip", z.ZodTypeAny, { codeinjection_head: string | null; codeinjection_foot: string | null; }, { codeinjection_head: string | null; codeinjection_foot: string | null; }>; declare const ghostFacebookSchema: z.ZodObject<{ og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; }, "strip", z.ZodTypeAny, { og_image: string | null; og_title: string | null; og_description: string | null; }, { og_image: string | null; og_title: string | null; og_description: string | null; }>; declare const ghostTwitterSchema: z.ZodObject<{ twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; }, "strip", z.ZodTypeAny, { twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; }, { twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; }>; declare const ghostSocialMediaSchema: z.ZodObject<{ twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; }, "strip", z.ZodTypeAny, { og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; }, { og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; }>; declare const ghostMetadataSchema: z.ZodObject<{ meta_title: z.ZodNullable; meta_description: z.ZodNullable; }, "strip", z.ZodTypeAny, { meta_title: string | null; meta_description: string | null; }, { meta_title: string | null; meta_description: string | null; }>; declare const ghostVisibilitySchema: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; declare const apiVersionsSchema: z.ZodDefault; type TAPIVersion = V extends "v5.0" | `v5.${infer Minor}` ? `v5.${Minor}` : never; type APIVersions = z.infer; declare const contentAPICredentialsSchema: z.ZodObject<{ key: z.ZodString; version: z.ZodDefault; url: z.ZodString; }, "strip", z.ZodTypeAny, { version: string; url: string; key: string; }, { url: string; key: string; version?: string | undefined; }>; type ContentAPICredentials = z.infer; type APIResource = "pages" | "posts" | "settings" | "authors" | "tiers" | "tags" | "members" | "site" | "offers" | "users" | "newsletters" | "webhooks" | "themes" | "files" | "images"; type APIEndpoint = "admin" | "content"; type APICredentials = { key: string; version: APIVersions; url: string; }; type GhostRequestConfig = { endpoint: APIEndpoint; resource: APIResource; httpClient: HTTPClient; }; declare const adminAPICredentialsSchema: z.ZodObject<{ key: z.ZodString; version: z.ZodDefault; url: z.ZodString; }, "strip", z.ZodTypeAny, { version: string; url: string; key: string; }, { url: string; key: string; version?: string | undefined; }>; declare const slugOrIdSchema: z.ZodUnion<[z.ZodObject<{ slug: z.ZodString; }, "strip", z.ZodTypeAny, { slug: string; }, { slug: string; }>, z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>]>; declare const emailOrIdSchema: z.ZodUnion<[z.ZodObject<{ email: z.ZodString; }, "strip", z.ZodTypeAny, { email: string; }, { email: string; }>, z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>]>; declare const identitySchema: z.ZodUnion<[z.ZodObject<{ email: z.ZodString; }, "strip", z.ZodTypeAny, { email: string; }, { email: string; }>, z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>, z.ZodObject<{ slug: z.ZodString; }, "strip", z.ZodTypeAny, { slug: string; }, { slug: string; }>]>; type AdminAPICredentials = z.infer; declare const baseTagsSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodNullable; feature_image: z.ZodNullable; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; canonical_url: z.ZodNullable; accent_color: z.ZodNullable; url: z.ZodString; created_at: z.ZodOptional>; updated_at: z.ZodOptional>; count: z.ZodOptional>; twitter_image: z.ZodNullable; twitter_title: z.ZodNullable; twitter_description: z.ZodNullable; og_image: z.ZodNullable; og_title: z.ZodNullable; og_description: z.ZodNullable; codeinjection_head: z.ZodNullable; codeinjection_foot: z.ZodNullable; meta_title: z.ZodNullable; meta_description: z.ZodNullable; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }, { url: string; id: string; slug: string; codeinjection_head: string | null; codeinjection_foot: string | null; og_image: string | null; og_title: string | null; og_description: string | null; twitter_image: string | null; twitter_title: string | null; twitter_description: string | null; meta_title: string | null; meta_description: string | null; name: string; description: string | null; feature_image: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; canonical_url: string | null; accent_color: string | null; created_at?: string | null | undefined; updated_at?: string | null | undefined; count?: { posts: number; } | undefined; }>; declare const baseTiersSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodNullable; active: z.ZodBoolean; type: z.ZodUnion<[z.ZodLiteral<"free">, z.ZodLiteral<"paid">]>; welcome_page_url: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodNullable; stripe_prices: z.ZodEffects>, number[], number[] | undefined>; monthly_price: z.ZodEffects>, number | null, number | null | undefined>; yearly_price: z.ZodEffects>, number | null, number | null | undefined>; benefits: z.ZodOptional>; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; currency: z.ZodOptional>; trial_days: z.ZodDefault; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices: number[]; monthly_price: number | null; yearly_price: number | null; trial_days: number; benefits?: string[] | undefined; currency?: string | null | undefined; }, { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices?: number[] | undefined; monthly_price?: number | null | undefined; yearly_price?: number | null | undefined; benefits?: string[] | undefined; currency?: string | null | undefined; trial_days?: number | undefined; }>; declare const baseEmailSchema: z.ZodObject<{ id: z.ZodString; uuid: z.ZodString; status: z.ZodString; recipient_filter: z.ZodString; error: z.ZodOptional>; error_data: z.ZodNullable; email_count: z.ZodNumber; delivered_count: z.ZodNumber; opened_count: z.ZodNumber; failed_count: z.ZodNumber; subject: z.ZodString; from: z.ZodString; reply_to: z.ZodNullable; source: z.ZodString; html: z.ZodNullable; plaintext: z.ZodNullable; track_opens: z.ZodBoolean; submitted_at: z.ZodString; created_at: z.ZodString; updated_at: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; status: string; created_at: string; updated_at: string; html: string | null; plaintext: string | null; uuid: string; recipient_filter: string; email_count: number; delivered_count: number; opened_count: number; failed_count: number; subject: string; from: string; reply_to: string | null; source: string; track_opens: boolean; submitted_at: string; error?: string | null | undefined; error_data?: any; }, { id: string; status: string; created_at: string; updated_at: string; html: string | null; plaintext: string | null; uuid: string; recipient_filter: string; email_count: number; delivered_count: number; opened_count: number; failed_count: number; subject: string; from: string; reply_to: string | null; source: string; track_opens: boolean; submitted_at: string; error?: string | null | undefined; error_data?: any; }>; declare const baseOffersSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodDefault; code: z.ZodString; display_title: z.ZodOptional>; display_description: z.ZodOptional>; type: z.ZodUnion<[z.ZodLiteral<"percent">, z.ZodLiteral<"fixed">, z.ZodLiteral<"trial">]>; cadence: z.ZodUnion<[z.ZodLiteral<"month">, z.ZodLiteral<"year">]>; amount: z.ZodNumber; duration: z.ZodUnion<[z.ZodLiteral<"once">, z.ZodLiteral<"forever">, z.ZodLiteral<"repeating">, z.ZodLiteral<"trial">]>; duration_in_months: z.ZodOptional>; currency_restriction: z.ZodOptional>; currency: z.ZodOptional>; status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"archived">]>; redemption_count: z.ZodOptional>; tier: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; name?: string | null | undefined; }, { id: string; name?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; name: string; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; }, { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; name?: string | undefined; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; }>; declare const baseMembersSchema: z.ZodObject<{ id: z.ZodString; email: z.ZodString; name: z.ZodNullable; note: z.ZodOptional>; geolocation: z.ZodOptional>; created_at: z.ZodString; updated_at: z.ZodOptional>; labels: z.ZodArray>; }, "strip", z.ZodTypeAny, { id: string; slug: string; name: string; created_at: string; updated_at?: string | null | undefined; }, { id: string; slug: string; name: string; created_at: string; updated_at?: string | null | undefined; }>, "many">; subscriptions: z.ZodArray; email: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; email: string; name: string | null; }, { id: string; email: string; name: string | null; }>; status: z.ZodString; start_date: z.ZodString; default_payment_card_last4: z.ZodNullable; cancel_at_period_end: z.ZodBoolean; cancellation_reason: z.ZodNullable; current_period_end: z.ZodString; price: z.ZodObject<{ id: z.ZodString; price_id: z.ZodString; nickname: z.ZodString; amount: z.ZodNumber; interval: z.ZodString; type: z.ZodString; currency: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; type: string; currency: string; amount: number; price_id: string; nickname: string; interval: string; }, { id: string; type: string; currency: string; amount: number; price_id: string; nickname: string; interval: string; }>; tier: z.ZodOptional; active: z.ZodBoolean; type: z.ZodUnion<[z.ZodLiteral<"free">, z.ZodLiteral<"paid">]>; welcome_page_url: z.ZodNullable; created_at: z.ZodString; updated_at: z.ZodNullable; stripe_prices: z.ZodEffects>, number[], number[] | undefined>; monthly_price: z.ZodEffects>, number | null, number | null | undefined>; yearly_price: z.ZodEffects>, number | null, number | null | undefined>; benefits: z.ZodOptional>; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">, z.ZodLiteral<"none">, z.ZodLiteral<"internal">, z.ZodLiteral<"paid">, z.ZodLiteral<"tiers">]>; currency: z.ZodOptional>; trial_days: z.ZodDefault; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices: number[]; monthly_price: number | null; yearly_price: number | null; trial_days: number; benefits?: string[] | undefined; currency?: string | null | undefined; }, { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices?: number[] | undefined; monthly_price?: number | null | undefined; yearly_price?: number | null | undefined; benefits?: string[] | undefined; currency?: string | null | undefined; trial_days?: number | undefined; }>>>; offer: z.ZodOptional; code: z.ZodString; display_title: z.ZodOptional>; display_description: z.ZodOptional>; type: z.ZodUnion<[z.ZodLiteral<"percent">, z.ZodLiteral<"fixed">, z.ZodLiteral<"trial">]>; cadence: z.ZodUnion<[z.ZodLiteral<"month">, z.ZodLiteral<"year">]>; amount: z.ZodNumber; duration: z.ZodUnion<[z.ZodLiteral<"once">, z.ZodLiteral<"forever">, z.ZodLiteral<"repeating">, z.ZodLiteral<"trial">]>; duration_in_months: z.ZodOptional>; currency_restriction: z.ZodOptional>; currency: z.ZodOptional>; status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"archived">]>; redemption_count: z.ZodOptional>; tier: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; name?: string | null | undefined; }, { id: string; name?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; name: string; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; }, { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; name?: string | undefined; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { id: string; status: string; customer: { id: string; email: string; name: string | null; }; start_date: string; default_payment_card_last4: string | null; cancel_at_period_end: boolean; cancellation_reason: string | null; current_period_end: string; price: { id: string; type: string; currency: string; amount: number; price_id: string; nickname: string; interval: string; }; tier?: { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices: number[]; monthly_price: number | null; yearly_price: number | null; trial_days: number; benefits?: string[] | undefined; currency?: string | null | undefined; } | null | undefined; offer?: { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; name: string; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; } | null | undefined; }, { id: string; status: string; customer: { id: string; email: string; name: string | null; }; start_date: string; default_payment_card_last4: string | null; cancel_at_period_end: boolean; cancellation_reason: string | null; current_period_end: string; price: { id: string; type: string; currency: string; amount: number; price_id: string; nickname: string; interval: string; }; tier?: { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices?: number[] | undefined; monthly_price?: number | null | undefined; yearly_price?: number | null | undefined; benefits?: string[] | undefined; currency?: string | null | undefined; trial_days?: number | undefined; } | null | undefined; offer?: { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; name?: string | undefined; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; } | null | undefined; }>, "many">; avatar_image: z.ZodString; email_count: z.ZodNumber; email_opened_count: z.ZodNumber; email_open_rate: z.ZodOptional>; status: z.ZodString; last_seen_at: z.ZodOptional>; newsletters: z.ZodArray>; sender_name: z.ZodOptional>; sender_email: z.ZodOptional>; sender_reply_to: z.ZodString; status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"archived">]>; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">]>; subscribe_on_signup: z.ZodBoolean; sort_order: z.ZodNumber; header_image: z.ZodOptional>; show_header_icon: z.ZodBoolean; show_header_title: z.ZodBoolean; title_font_category: z.ZodUnion<[z.ZodLiteral<"serif">, z.ZodLiteral<"sans_serif">]>; title_alignment: z.ZodOptional>; show_feature_image: z.ZodBoolean; body_font_category: z.ZodUnion<[z.ZodLiteral<"serif">, z.ZodLiteral<"sans_serif">]>; footer_content: z.ZodOptional>; show_badge: z.ZodBoolean; created_at: z.ZodString; updated_at: z.ZodOptional>; show_header_name: z.ZodBoolean; uuid: z.ZodString; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; slug: string; status: "active" | "archived"; name: string; visibility: "members" | "public"; created_at: string; uuid: string; sender_reply_to: string; subscribe_on_signup: boolean; sort_order: number; show_header_icon: boolean; show_header_title: boolean; title_font_category: "serif" | "sans_serif"; show_feature_image: boolean; body_font_category: "serif" | "sans_serif"; show_badge: boolean; show_header_name: boolean; description?: string | null | undefined; sender_name?: string | null | undefined; sender_email?: string | null | undefined; header_image?: string | null | undefined; title_alignment?: string | null | undefined; footer_content?: string | null | undefined; updated_at?: string | null | undefined; }, { id: string; slug: string; status: "active" | "archived"; name: string; visibility: "members" | "public"; created_at: string; uuid: string; sender_reply_to: string; subscribe_on_signup: boolean; sort_order: number; show_header_icon: boolean; show_header_title: boolean; title_font_category: "serif" | "sans_serif"; show_feature_image: boolean; body_font_category: "serif" | "sans_serif"; show_badge: boolean; show_header_name: boolean; description?: string | null | undefined; sender_name?: string | null | undefined; sender_email?: string | null | undefined; header_image?: string | null | undefined; title_alignment?: string | null | undefined; footer_content?: string | null | undefined; updated_at?: string | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { newsletters: { id: string; slug: string; status: "active" | "archived"; name: string; visibility: "members" | "public"; created_at: string; uuid: string; sender_reply_to: string; subscribe_on_signup: boolean; sort_order: number; show_header_icon: boolean; show_header_title: boolean; title_font_category: "serif" | "sans_serif"; show_feature_image: boolean; body_font_category: "serif" | "sans_serif"; show_badge: boolean; show_header_name: boolean; description?: string | null | undefined; sender_name?: string | null | undefined; sender_email?: string | null | undefined; header_image?: string | null | undefined; title_alignment?: string | null | undefined; footer_content?: string | null | undefined; updated_at?: string | null | undefined; }[]; id: string; status: string; email: string; name: string | null; created_at: string; email_count: number; labels: { id: string; slug: string; name: string; created_at: string; updated_at?: string | null | undefined; }[]; subscriptions: { id: string; status: string; customer: { id: string; email: string; name: string | null; }; start_date: string; default_payment_card_last4: string | null; cancel_at_period_end: boolean; cancellation_reason: string | null; current_period_end: string; price: { id: string; type: string; currency: string; amount: number; price_id: string; nickname: string; interval: string; }; tier?: { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices: number[]; monthly_price: number | null; yearly_price: number | null; trial_days: number; benefits?: string[] | undefined; currency?: string | null | undefined; } | null | undefined; offer?: { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; name: string; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; } | null | undefined; }[]; avatar_image: string; email_opened_count: number; note?: string | null | undefined; geolocation?: string | null | undefined; updated_at?: string | null | undefined; email_open_rate?: number | null | undefined; last_seen_at?: string | null | undefined; }, { newsletters: { id: string; slug: string; status: "active" | "archived"; name: string; visibility: "members" | "public"; created_at: string; uuid: string; sender_reply_to: string; subscribe_on_signup: boolean; sort_order: number; show_header_icon: boolean; show_header_title: boolean; title_font_category: "serif" | "sans_serif"; show_feature_image: boolean; body_font_category: "serif" | "sans_serif"; show_badge: boolean; show_header_name: boolean; description?: string | null | undefined; sender_name?: string | null | undefined; sender_email?: string | null | undefined; header_image?: string | null | undefined; title_alignment?: string | null | undefined; footer_content?: string | null | undefined; updated_at?: string | null | undefined; }[]; id: string; status: string; email: string; name: string | null; created_at: string; email_count: number; labels: { id: string; slug: string; name: string; created_at: string; updated_at?: string | null | undefined; }[]; subscriptions: { id: string; status: string; customer: { id: string; email: string; name: string | null; }; start_date: string; default_payment_card_last4: string | null; cancel_at_period_end: boolean; cancellation_reason: string | null; current_period_end: string; price: { id: string; type: string; currency: string; amount: number; price_id: string; nickname: string; interval: string; }; tier?: { id: string; slug: string; type: "paid" | "free"; name: string; description: string | null; visibility: "tiers" | "members" | "public" | "none" | "internal" | "paid"; created_at: string; updated_at: string | null; active: boolean; welcome_page_url: string | null; stripe_prices?: number[] | undefined; monthly_price?: number | null | undefined; yearly_price?: number | null | undefined; benefits?: string[] | undefined; currency?: string | null | undefined; trial_days?: number | undefined; } | null | undefined; offer?: { id: string; code: string; type: "percent" | "fixed" | "trial"; status: "active" | "archived"; cadence: "month" | "year"; amount: number; duration: "trial" | "once" | "forever" | "repeating"; tier: { id: string; name?: string | null | undefined; }; name?: string | undefined; display_title?: string | null | undefined; display_description?: string | null | undefined; duration_in_months?: number | null | undefined; currency_restriction?: boolean | null | undefined; currency?: string | null | undefined; redemption_count?: number | null | undefined; } | null | undefined; }[]; avatar_image: string; email_opened_count: number; note?: string | null | undefined; geolocation?: string | null | undefined; updated_at?: string | null | undefined; email_open_rate?: number | null | undefined; last_seen_at?: string | null | undefined; }>; declare const baseNewsletterSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional>; sender_name: z.ZodOptional>; sender_email: z.ZodOptional>; sender_reply_to: z.ZodString; status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"archived">]>; visibility: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"members">]>; subscribe_on_signup: z.ZodBoolean; sort_order: z.ZodNumber; header_image: z.ZodOptional>; show_header_icon: z.ZodBoolean; show_header_title: z.ZodBoolean; title_font_category: z.ZodUnion<[z.ZodLiteral<"serif">, z.ZodLiteral<"sans_serif">]>; title_alignment: z.ZodOptional>; show_feature_image: z.ZodBoolean; body_font_category: z.ZodUnion<[z.ZodLiteral<"serif">, z.ZodLiteral<"sans_serif">]>; footer_content: z.ZodOptional>; show_badge: z.ZodBoolean; created_at: z.ZodString; updated_at: z.ZodOptional>; show_header_name: z.ZodBoolean; uuid: z.ZodString; slug: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; slug: string; status: "active" | "archived"; name: string; visibility: "members" | "public"; created_at: string; uuid: string; sender_reply_to: string; subscribe_on_signup: boolean; sort_order: number; show_header_icon: boolean; show_header_title: boolean; title_font_category: "serif" | "sans_serif"; show_feature_image: boolean; body_font_category: "serif" | "sans_serif"; show_badge: boolean; show_header_name: boolean; description?: string | null | undefined; sender_name?: string | null | undefined; sender_email?: string | null | undefined; header_image?: string | null | undefined; title_alignment?: string | null | undefined; footer_content?: string | null | undefined; updated_at?: string | null | undefined; }, { id: string; slug: string; status: "active" | "archived"; name: string; visibility: "members" | "public"; created_at: string; uuid: string; sender_reply_to: string; subscribe_on_signup: boolean; sort_order: number; show_header_icon: boolean; show_header_title: boolean; title_font_category: "serif" | "sans_serif"; show_feature_image: boolean; body_font_category: "serif" | "sans_serif"; show_badge: boolean; show_header_name: boolean; description?: string | null | undefined; sender_name?: string | null | undefined; sender_email?: string | null | undefined; header_image?: string | null | undefined; title_alignment?: string | null | undefined; footer_content?: string | null | undefined; updated_at?: string | null | undefined; }>; declare const baseSiteSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodString; logo: z.ZodNullable; version: z.ZodString; url: z.ZodString; }, "strip", z.ZodTypeAny, { version: string; url: string; description: string; title: string; logo: string | null; }, { version: string; url: string; description: string; title: string; logo: string | null; }>; type Split = Str extends `${infer Start}${Separator}${infer Rest}` ? [Start, ...Split] : [Str]; type BrowseOrder = S extends [infer Head, ...infer Tail] ? Tail extends [] ? OrderPredicate : `${OrderPredicate},${BrowseOrder}` : S extends string ? OrderPredicate : never; type OrderPredicate = S extends string ? S extends `${infer Field} ${infer Direction}` ? Field extends keyof Shape ? Direction extends "ASC" | "DESC" | "asc" | "desc" ? `${Field} ${Direction}` : never : never : S extends keyof Shape ? `${S}` : never : never; type FilterQuerySeparator = "+" | "," | "(" | ")"; type FilterQueryOperators = `-` | `>` | `<` | `~`; type FilterQuerySetOperators = `-`; type FieldOrSubField = S extends `${infer Field}.${string}` ? Field : S; type BrowseFilter = S extends string ? S extends `${infer Field}:${infer Rest}` ? FieldOrSubField extends keyof Shape ? Rest extends `${FilterQuerySetOperators}[${infer Values}]` ? `${Field}:${FilterQuerySetOperators}[${Values}]` : Rest extends `[${infer Values}]` ? `${Field}:[${Values}]` : Rest extends `${FilterQuerySetOperators}[${infer Values}]${FilterQuerySeparator}${infer NextQuery}` ? `${Field}:${FilterQuerySetOperators}[${Values}]${FilterQuerySeparator}${BrowseFilter}` : Rest extends `[${infer Values}]${FilterQuerySeparator}${infer NextQuery}` ? `${Field}:[${Values}]${FilterQuerySeparator}${BrowseFilter}` : Rest extends `${infer Value}${FilterQuerySeparator}${infer NextQuery}` ? `${Field}:${Value}${FilterQuerySeparator}${BrowseFilter}` : Rest extends `${infer Value}` ? Value extends string ? `${Field}:${Value}` : never : S : never : never : never; type BrowseParams = P extends { order: infer Order; } ? P extends { filter: infer Filter; } ? Omit & { order: BrowseOrder, Shape>; } & { filter: BrowseFilter; } : Omit & { order: BrowseOrder, Shape>; } : P extends { filter: infer Filter; } ? Omit & { filter: BrowseFilter; } : P; declare const browseParamsSchema: z.ZodObject<{ order: z.ZodOptional; limit: z.ZodOptional, z.ZodEffects]>>; page: z.ZodOptional>; filter: z.ZodOptional; }, "strip", z.ZodTypeAny, { order?: string | undefined; limit?: number | "all" | undefined; page?: number | undefined; filter?: string | undefined; }, { order?: string | undefined; limit?: number | "all" | undefined; page?: number | undefined; filter?: string | undefined; }>; type BrowseParamsSchema = z.infer; declare const parseBrowseParams: (args: P, schema: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>, includeSchema?: z.ZodObject, { [k_4 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_4] ? never : k_4; }[keyof IncludeShape]> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_4 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_4] ? never : k_4; }[keyof IncludeShape]>[k_3]; } : never, z.baseObjectInputType extends infer T_3 ? { [k_5 in keyof T_3]: z.baseObjectInputType[k_5]; } : never> | undefined) => { page?: number | undefined; limit?: number | "all" | undefined; order?: string | undefined; filter?: string | undefined; }; declare type Mask = { [k in keyof Obj]?: true; }; declare type InferResponseDataShape = T extends { success: true; data: infer D } ? D : never; declare type InferFetcherDataShape Promise }> = InferResponseDataShape< Awaited> >; type IsAny = 0 extends 1 & T ? true : false; type ContentFormats = "html" | "mobiledoc" | "plaintext" | "lexical"; declare class BrowseFetcher = any, BaseShape extends ZodRawShape = any, OutputShape extends ZodRawShape = any, IncludeShape extends ZodRawShape = any> { protected resource: Resource; protected config: { schema: z.ZodObject; output: z.ZodObject; include: z.ZodObject; }; private _params; protected httpClient: HTTPClient; protected _urlParams: Record; protected _urlSearchParams: URLSearchParams | undefined; protected _includeFields: (keyof IncludeShape)[]; constructor(resource: Resource, config: { schema: z.ZodObject; output: z.ZodObject; include: z.ZodObject; }, _params: { browseParams?: Params; include?: (keyof IncludeShape)[]; fields?: Fields; formats?: string[]; }, httpClient: HTTPClient); /** * Lets you choose output format for the content of Post and Pages resources * The choices are html, mobiledoc or plaintext. It will transform the output of the fetcher to a new shape * with the selected formats required. * * @param formats html, mobiledoc or plaintext * @returns A new Fetcher with the fixed output shape and the formats specified */ formats>>(formats: z.noUnrecognized): BrowseFetcher : OutputShape[k]; }>]: k_1 extends keyof OutputShape ? { [k in keyof OutputShape]: k extends keyof Formats ? z.deoptional : OutputShape[k]; }[k_1] : never; }, IncludeShape>; /** * Let's you include special keys into the Ghost API Query to retrieve complimentary info * The available keys are defined by the Resource include schema, will not care about unknown keys. * Returns a new Fetcher with an Output shape modified with the include keys required. * * @param include Include specific keys from the include shape * @returns A new Fetcher with the fixed output shape and the formats specified */ include>(include: z.noUnrecognized): BrowseFetcher : OutputShape[k]; }>]: k_1 extends keyof OutputShape ? { [k in keyof OutputShape]: k extends keyof Includes ? z.deoptional : OutputShape[k]; }[k_1] : never; }, IncludeShape>; /** * Let's you strip the output to only the specified keys of your choice that are in the config Schema * Will not care about unknown keys and return a new Fetcher with an Output shape with only the selected keys. * * @param fields Any keys from the resource Schema * @returns A new Fetcher with the fixed output shape having only the selected Fields */ fields>(fields: z.noUnrecognized): BrowseFetcher>, IncludeShape>; getResource(): Resource; getParams(): { browseParams?: Params | undefined; include?: (keyof IncludeShape)[] | undefined; fields?: Fields | undefined; formats?: string[] | undefined; }; getOutputFields(): string[]; getURLSearchParams(): URLSearchParams | undefined; getIncludes(): (keyof IncludeShape)[]; getFormats(): string[]; private _buildUrlParams; private _urlBrowseParams; private _getResultSchema; fetch(options?: RequestInit): Promise<{ data: (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never)[]; success: true; meta: { pagination: { pages: number; page: number; limit: number | "all"; total: number; prev: number | null; next: number | null; }; }; } | { success: false; errors: { message: string; type: string; }[]; }>; paginate(options?: RequestInit): Promise<{ current: { data: (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never)[]; success: true; meta: { pagination: { pages: number; page: number; limit: number | "all"; total: number; prev: number | null; next: number | null; }; }; } | { success: false; errors: { message: string; type: string; }[]; }; next: BrowseFetcher | undefined; }>; } declare class ReadFetcher = any, BaseShape extends ZodRawShape = any, OutputShape extends ZodRawShape = any, IncludeShape extends ZodRawShape = any> { protected resource: Resource; protected config: { schema: z.ZodObject; output: z.ZodObject; include: z.ZodObject; }; private _params; protected httpClient: HTTPClient; protected _urlParams: Record; protected _urlSearchParams: URLSearchParams | undefined; protected _pathnameIdentity: string | undefined; protected _includeFields: (keyof IncludeShape)[]; constructor(resource: Resource, config: { schema: z.ZodObject; output: z.ZodObject; include: z.ZodObject; }, _params: { identity: GhostIdentityInput; include?: (keyof IncludeShape)[]; fields?: Fields; formats?: string[]; }, httpClient: HTTPClient); /** * Lets you choose output format for the content of Post and Pages resources * The choices are html, mobiledoc or plaintext. It will transform the output of the fetcher to a new shape * with the selected formats required. * * @param formats html, mobiledoc or plaintext * @returns A new Fetcher with the fixed output shape and the formats specified */ formats>>(formats: z.noUnrecognized): ReadFetcher : OutputShape[k]; }>]: k_1 extends keyof OutputShape ? { [k in keyof OutputShape]: k extends keyof Formats ? z.deoptional : OutputShape[k]; }[k_1] : never; }, IncludeShape>; /** * Let's you include special keys into the Ghost API Query to retrieve complimentary info * The available keys are defined by the Resource include schema, will not care about unknown keys. * Returns a new Fetcher with an Output shape modified with the include keys required. * * @param include Include specific keys from the include shape * @returns A new Fetcher with the fixed output shape and the formats specified */ include>(include: z.noUnrecognized): ReadFetcher : OutputShape[k]; }>]: k_1 extends keyof OutputShape ? { [k in keyof OutputShape]: k extends keyof Includes ? z.deoptional : OutputShape[k]; }[k_1] : never; }, IncludeShape>; /** * Let's you strip the output to only the specified keys of your choice that are in the config Schema * Will not care about unknown keys and return a new Fetcher with an Output shape with only the selected keys. * * @param fields Any keys from the resource Schema * @returns A new Fetcher with the fixed output shape having only the selected Fields */ fields>(fields: z.noUnrecognized): ReadFetcher>, IncludeShape>; getResource(): Resource; getParams(): { identity: { slug?: string | undefined; id?: string | undefined; email?: string | undefined; }; include?: (keyof IncludeShape)[] | undefined; fields?: Fields | undefined; formats?: string[] | undefined; }; getOutputFields(): string[]; getIncludes(): (keyof IncludeShape)[]; getFormats(): string[]; private _buildUrlParams; fetch(options?: RequestInit): Promise<{ [k_1 in keyof z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never) ? never : "data")>]: z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never) ? never : "data")>[k_1]; } | { success: false; errors: { message: string; type: string; }[]; }>; } declare class BasicFetcher { protected resource: Resource; protected config: { output: OutputShape; }; protected httpClient: HTTPClient; constructor(resource: Resource, config: { output: OutputShape; }, httpClient: HTTPClient); getResource(): Resource; fetch(options?: RequestInit): Promise<{ [k_1 in keyof z.objectUtil.addQuestionMarks; data: OutputShape; }>, "success" | (undefined extends OutputShape["_output"] ? never : "data")>]: z.objectUtil.addQuestionMarks; data: OutputShape; }>, "success" | (undefined extends OutputShape["_output"] ? never : "data")>[k_1]; } | { success: false; errors: { message: string; type: string; }[]; }>; } declare class MutationFetcher { protected resource: Resource; protected config: { output: z.ZodObject; paramsShape?: ParamsShape; }; private _params; protected _options: { method: HTTPVerb; body: Record; }; protected httpClient: HTTPClient; protected _urlParams: Record; protected _urlSearchParams: URLSearchParams | undefined; protected _pathnameIdentity: string | undefined; constructor(resource: Resource, config: { output: z.ZodObject; paramsShape?: ParamsShape; }, _params: ({ id?: string; } & ParamsShape["_output"]) | undefined, _options: { method: HTTPVerb; body: Record; }, httpClient: HTTPClient); getResource(): Resource; getParams(): ({ id?: string | undefined; } & ParamsShape["_output"]) | undefined; private _buildUrlParams; submit(): Promise<{ [k_1 in keyof z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never) ? never : "data")>]: z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof OutputShape]>[k]; } : never) ? never : "data")>[k_1]; } | { success: false; errors: { message: string; type: string; context?: string | null | undefined; }[]; }>; } declare class DeleteFetcher { protected resource: Resource; private _params; protected httpClient: HTTPClient; protected _pathnameIdentity: string | undefined; constructor(resource: Resource, _params: { id: string; }, httpClient: HTTPClient); getResource(): Resource; getParams(): { id: string; }; private _buildPathnameIdentity; submit(): Promise<{ success: true; } | { success: false; errors: { message: string; type: string; context?: string | null | undefined; }[]; }>; } /** * API Composer contains all methods, pick and choose. */ declare class APIComposer { protected resource: Resource; protected config: { schema: z.ZodObject; identitySchema: IdentityShape; include: z.ZodObject; createSchema?: CreateShape; createOptionsSchema?: CreateOptions; updateSchema?: UpdateShape; updateOptionsSchema?: UpdateOptions; }; protected httpClient: HTTPClient; constructor(resource: Resource, config: { schema: z.ZodObject; identitySchema: IdentityShape; include: z.ZodObject; createSchema?: CreateShape; createOptionsSchema?: CreateOptions; updateSchema?: UpdateShape; updateOptionsSchema?: UpdateOptions; }, httpClient: HTTPClient); /** * Browse function that accepts browse params order, filter, page and limit. Will return an instance * of BrowseFetcher class. */ browse(options?: BrowseParams): BrowseFetcher; /** * Read function that accepts Identify fields like id, slug or email. Will return an instance * of ReadFetcher class. */ read(options: z.infer): ReadFetcher; add(data: z.input, options?: z.infer): Promise<{ [k_1 in keyof z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never) ? never : "data")>]: z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never) ? never : "data")>[k_1]; } | { success: false; errors: { message: string; type: string; context?: string | null | undefined; }[]; }>; edit(id: string, data: IsAny extends true ? Partial> : z.input, options?: z.infer): Promise<{ [k_1 in keyof z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never) ? never : "data")>]: z.objectUtil.addQuestionMarks; data: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>; }>, "success" | (undefined extends (z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T_2 ? { [k in keyof T_2]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never) ? never : "data")>[k_1]; } | { success: false; errors: { message: string; type: string; context?: string | null | undefined; }[]; }>; delete(id: string): Promise<{ success: true; } | { success: false; errors: { message: string; type: string; context?: string | null | undefined; }[]; }>; access(keys: Keys[]): Pick; } /** * Parse a Fields object and generate a new Output Schema * * @param schema Base Resource Schema * @param fields Object containing fields to be picked with true as value * @returns new schema with only the fields specified in the fields object */ declare const schemaWithPickedFields: >(schema: z.ZodObject, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks, { [k_1 in keyof z.baseObjectOutputType]: undefined extends z.baseObjectOutputType[k_1] ? never : k_1; }[keyof Shape]>[k]; } : never, z.baseObjectInputType extends infer T_1 ? { [k_2 in keyof T_1]: z.baseObjectInputType[k_2]; } : never>, fields?: Fields | undefined) => z.ZodObject>, z.UnknownKeysParam, z.ZodTypeAny, z.objectUtil.addQuestionMarks>>, (z.baseObjectOutputType>> extends infer T_3 extends object ? { [k_4 in keyof T_3]: undefined extends z.baseObjectOutputType>>[k_4] ? never : k_4; } : never)[Extract]> extends infer T_2 ? { [k_3 in keyof T_2]: z.objectUtil.addQuestionMarks>>, (z.baseObjectOutputType>> extends infer T_3 extends object ? { [k_4 in keyof T_3]: undefined extends z.baseObjectOutputType>>[k_4] ? never : k_4; } : never)[Extract]>[k_3]; } : never, z.baseObjectInputType>> extends infer T_4 ? { [k_5 in keyof T_4]: z.baseObjectInputType>>[k_5]; } : never>; export { APIComposer, type APICredentials, type APIEndpoint, type APIResource, type APIVersions, type AdminAPICredentials, BasicFetcher, BrowseFetcher, type BrowseFilter, type BrowseOrder, type BrowseParams, type BrowseParamsSchema, type ContentAPICredentials, DeleteFetcher, type FieldOrSubField, type FilterQueryOperators, type FilterQuerySeparator, type FilterQuerySetOperators, type GhostIdentity, type GhostIdentityInput, type GhostMeta, type GhostRequestConfig, HTTPClient, type HTTPClientOptions, type IHTTPClient, type InferFetcherDataShape, type InferResponseDataShape, type IsAny, type Mask, MutationFetcher, type OrderPredicate, ReadFetcher, type TAPIVersion, adminAPICredentialsSchema, apiVersionsSchema, baseAuthorsSchema, baseEmailSchema, baseMembersSchema, baseNewsletterSchema, baseOffersSchema, basePagesSchema, basePostsSchema, baseSettingsSchema, baseSiteSchema, baseTagsSchema, baseTiersSchema, browseParamsSchema, contentAPICredentialsSchema, emailOrIdSchema, ghostCodeInjectionSchema, ghostExcerptSchema, ghostFacebookSchema, ghostIdentityInputSchema, ghostIdentitySchema, ghostMetaSchema, ghostMetadataSchema, ghostSocialMediaSchema, ghostTwitterSchema, ghostVisibilitySchema, identitySchema, parseBrowseParams, schemaWithPickedFields, slugOrIdSchema };