/** * name: @storyblok/vue * (c) 2026 * description: SDK to integrate Storyblok into your project using Vue. * author: Storyblok */ import { Component, Directive, Plugin, PropType, Ref } from "vue"; import { ArrayFn, AsyncFn, ISbAlternateObject, ISbCache, ISbConfig, ISbContentMangmntAPI, ISbDimensions, ISbError, ISbManagmentApiResult, ISbResponse, ISbResult, ISbSchema, ISbStories, ISbStoriesParams, ISbStory, ISbStoryData, ISbStoryParams, SbBlokData, SbBlokKeyDataTypes, SbSDKOptions, SbSDKOptions as SbSDKOptions$1, StoryblokBridgeConfigV2, StoryblokBridgeV2, StoryblokClient, StoryblokComponentType, apiPlugin, editableField, useStoryblokBridge } from "@storyblok/js"; import { RenderSpec, SbRichTextDoc, SbRichTextImageOptions, SbRichTextMark, SbRichTextNode, SbRichTextProps, SbRichTextRenderContext, StoryblokRichTextElement, StoryblokRichTextElement as StoryblokRichTextElement$1, StoryblokRichTextElementByType, StoryblokRichTextImageOptions, StoryblokRichTextImageOptions as StoryblokRichTextImageOptions$1, StoryblokRichTextInput, StoryblokRichTextInput as StoryblokRichTextInput$1, StoryblokRichTextMark, StoryblokRichTextMarkWithKey, StoryblokRichTextNode, StoryblokRichTextNodeWithKey, StoryblokRichTextProps, StoryblokRichTextRenderContext, StoryblokRichTextRenderSpec, StoryblokRichTextTextNode, attrsToHtmlString, buildStoryblokImage, getInnerMarks, getStaticChildren, groupLinkNodes, hasContent, isSelfClosing, normalizeNodes, processAttrs, renderRichText, resolveTag, splitTableRows, styleToString } from "@storyblok/richtext"; //#region src/components/StoryblokComponent.vue.d.ts type __VLS_Props = { blok: SbBlokData; }; declare var __VLS_11: string, __VLS_12: any; type __VLS_Slots = {} & { [K in NonNullable]?: (props: typeof __VLS_12) => any; }; declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, { value: import("vue").Ref; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_export$1: __VLS_WithSlots; declare const _default: typeof __VLS_export$1; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion //#region src/types.d.ts declare module "vue" { interface GlobalComponents { StoryblokComponent: typeof _default; } interface GlobalDirectives { vEditable: Directive; } } interface SbVueSDKOptions extends SbSDKOptions$1 { /** * Show a fallback component in your frontend if a component is not registered properly. */ enableFallbackComponent?: boolean; /** * Provide a custom fallback component, e.g. "CustomFallback". */ customFallbackComponent?: string; } //#endregion //#region src/rich-text-renderer.d.ts interface StoryblokVueRichTextRenderContext { optimizeImage?: boolean | Partial; components?: StoryblokVueRichTextComponentMap; data?: unknown; } /** * @deprecated Use {@link StoryblokVueRichTextRenderContext} instead. Will be removed in the next major version. */ type SbVueRichTextRenderContext = StoryblokVueRichTextRenderContext; type StoryblokVueRichTextProps = StoryblokRichTextElementByType; /** * @deprecated Use {@link StoryblokVueRichTextProps} instead. Will be removed in the next major version. */ type SbVueRichTextProps = StoryblokVueRichTextProps; type StoryblokVueRichTextComponentMap = { [K in StoryblokRichTextElement$1]?: Component; }; /** * @deprecated Use {@link StoryblokVueRichTextComponentMap} instead. Will be removed in the next major version. */ type SbVueRichTextComponentMap = StoryblokVueRichTextComponentMap; /** Props for the `` Vue component. */ interface StoryblokVueRichTextComponentProps extends StoryblokVueRichTextRenderContext { document?: StoryblokRichTextInput$1; } //#endregion //#region src/components/StoryblokRichText.vue.d.ts declare const _default$1: typeof __VLS_export; declare const __VLS_export: import("vue").DefineComponent; required: false; }; optimizeImage: { type: PropType; required: false; }; components: { type: PropType; required: false; }; data: { type: PropType; required: false; }; }>, () => import("vue").VNode | import("vue").VNode[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly; required: false; }; optimizeImage: { type: PropType; required: false; }; components: { type: PropType; required: false; }; data: { type: PropType; required: false; }; }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; //#endregion //#region src/composables/use-storyblok-rich-text.d.ts /** * Creates a Storyblok Rich Text renderer. * * The returned render function can be used to transform Storyblok Rich Text * documents into Vue VNodes using the provided configuration. * * Useful for configuring image optimization and custom node resolvers once * and reusing the renderer across multiple rich text documents. * * @example * ```ts * const render = useStoryblokRichText({ * optimizeImage: true, * components: { * heading: CustomHeading, * }, * }); * * const content = computed(() => render(story.content.richtext)); * ``` * * @example * ```vue * * * * ``` */ declare function useStoryblokRichText(props: StoryblokVueRichTextRenderContext): (document: import("@storyblok/richtext").StoryblokRichTextInput) => import("vue").VNode | import("vue").VNode[] | null; //#endregion //#region src/index.d.ts declare const useStoryblokApi: () => StoryblokClient; declare const useStoryblok: (url: string, apiOptions?: ISbStoriesParams, bridgeOptions?: StoryblokBridgeConfigV2) => Promise>; declare const StoryblokVue: Plugin; //#endregion export { type ArrayFn, type AsyncFn, type ISbAlternateObject, type ISbCache, type ISbConfig, type ISbContentMangmntAPI, type ISbDimensions, type ISbError, type ISbManagmentApiResult, type ISbResponse, type ISbResult, type ISbSchema, type ISbStories, type ISbStoriesParams, type ISbStory, type ISbStoryData, type ISbStoryParams, type RenderSpec, type SbBlokData, type SbBlokKeyDataTypes, type SbRichTextDoc, type SbRichTextImageOptions, type SbRichTextMark, type SbRichTextNode, type SbRichTextProps, type SbRichTextRenderContext, type SbSDKOptions, type SbVueRichTextComponentMap, type SbVueRichTextProps, type SbVueRichTextRenderContext, SbVueSDKOptions, type StoryblokBridgeConfigV2, type StoryblokBridgeV2, StoryblokClient, _default as StoryblokComponent, type StoryblokComponentType, _default$1 as StoryblokRichText, type StoryblokRichTextElement, type StoryblokRichTextImageOptions, type StoryblokRichTextInput, type StoryblokRichTextMark, type StoryblokRichTextMarkWithKey, type StoryblokRichTextNode, type StoryblokRichTextNodeWithKey, type StoryblokRichTextProps, type StoryblokRichTextRenderContext, type StoryblokRichTextRenderSpec, type StoryblokRichTextTextNode, StoryblokVue, type StoryblokVueRichTextComponentMap, type StoryblokVueRichTextComponentProps, type StoryblokVueRichTextProps, type StoryblokVueRichTextRenderContext, apiPlugin, attrsToHtmlString, buildStoryblokImage, editableField, getInnerMarks, getStaticChildren, groupLinkNodes, hasContent, isSelfClosing, normalizeNodes, processAttrs, renderRichText, resolveTag, splitTableRows, styleToString, useStoryblok, useStoryblokApi, useStoryblokBridge, useStoryblokRichText };