@prismicio/vue 3.0.0-alpha.6 → 3.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,8 +2,7 @@ import * as vue from 'vue';
2
2
  import { PropType, DefineComponent, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ConcreteComponent, App, Ref, ComputedRef, InjectionKey } from 'vue';
3
3
  import * as _prismicio_client from '@prismicio/client';
4
4
  import { Client, ClientConfig, predicate, cookie, PrismicError, ParsingError, ForbiddenError } from '@prismicio/client';
5
- import { asText, asHTML, asLink, LinkResolverFunction, asDate, documentToLinkField, HTMLFunctionSerializer, HTMLMapSerializer } from '@prismicio/helpers';
6
- import * as _prismicio_types from '@prismicio/types';
5
+ import { asText, asHTML, asLink, LinkResolverFunction, asDate, asImageSrc, asImageWidthSrcSet, asImagePixelDensitySrcSet, documentToLinkField, HTMLFunctionSerializer, HTMLMapSerializer } from '@prismicio/helpers';
7
6
  import { Slice, EmbedField, ImageField, LinkField, PrismicDocument, RichTextField, Query } from '@prismicio/types';
8
7
 
9
8
  /**
@@ -111,7 +110,7 @@ declare type DefineComponentSliceComponentProps<TSlice extends SliceLike = Slice
111
110
  *
112
111
  * @returns Props object to use with {@link defineComponent}
113
112
  */
114
- declare const getSliceComponentProps: <TSlice extends SliceLike<string> = SliceLike<string>, TContext = unknown>(propsHint?: string[] | undefined) => DefineComponentSliceComponentProps<TSlice, TContext>;
113
+ declare const getSliceComponentProps: <TSlice extends SliceLike<string> = SliceLike<string>, TContext = unknown>(propsHint?: ["slice", "index", "slices", "context"] | undefined) => DefineComponentSliceComponentProps<TSlice, TContext>;
115
114
  /**
116
115
  * A Vue component to be rendered for each instance of its Slice.
117
116
  *
@@ -163,6 +162,7 @@ declare type SliceZoneComponents<TSlice extends SliceLike = SliceLike, TContext
163
162
  *
164
163
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
165
164
  * @typeParam TContext - Arbitrary data made available to all Slice components
165
+ *
166
166
  * @param components - {@link SliceZoneComponents}
167
167
  *
168
168
  * @returns A new optimized record of {@link SliceZoneComponents}
@@ -191,6 +191,7 @@ declare type SliceZoneResolverArgs<TSlice extends SliceLike = SliceLike> = {
191
191
  * the `components` or `defaultComponent` props to determine the rendered component.
192
192
  *
193
193
  * @deprecated Use the `components` prop instead.
194
+ *
194
195
  * @param args - Arguments for the resolver function.
195
196
  *
196
197
  * @returns The Vue component to render for a Slice.
@@ -216,6 +217,7 @@ declare type SliceZoneProps<TSlice extends SliceLike = SliceLike, TContext = unk
216
217
  * Slice Zone.
217
218
  *
218
219
  * @deprecated Use the `components` prop instead.
220
+ *
219
221
  * @param args - Arguments for the resolver function.
220
222
  *
221
223
  * @returns The Vue component to render for a Slice.
@@ -231,6 +233,7 @@ declare type SliceZoneProps<TSlice extends SliceLike = SliceLike, TContext = unk
231
233
  *
232
234
  * @remarks
233
235
  * Components will be rendered using the {@link SliceComponentProps} interface.
236
+ *
234
237
  * @defaultValue The Slice Zone default component provided to `@prismicio/vue` plugin if configured, otherwise `null` when `process.env.NODE_ENV === "production"` else {@link TODOSliceComponent}.
235
238
  */
236
239
  defaultComponent?: SliceComponentType<TSlice, TContext>;
@@ -240,67 +243,6 @@ declare type SliceZoneProps<TSlice extends SliceLike = SliceLike, TContext = unk
240
243
  */
241
244
  wrapper?: string | ConcreteComponent;
242
245
  };
243
- /**
244
- * `<SliceZone />` implementation.
245
- *
246
- * @internal
247
- */
248
- declare const SliceZoneImpl: DefineComponent<{
249
- slices: {
250
- type: PropType<SliceZoneLike<SliceLike<string>>>;
251
- required: true;
252
- };
253
- components: {
254
- type: PropType<SliceZoneComponents<SliceLike<string>, unknown>>;
255
- default: undefined;
256
- required: false;
257
- };
258
- resolver: {
259
- type: PropType<SliceZoneResolver<SliceLike<string>, unknown>>;
260
- default: undefined;
261
- required: false;
262
- };
263
- context: {
264
- type: null;
265
- default: undefined;
266
- required: false;
267
- };
268
- defaultComponent: {
269
- type: PropType<SliceComponentType<SliceLike<string>, unknown>>;
270
- default: undefined;
271
- required: false;
272
- };
273
- wrapper: {
274
- type: PropType<string | ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions>>;
275
- default: undefined;
276
- required: false;
277
- };
278
- }, (() => null) | (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
279
- [key: string]: any;
280
- }> | vue.VNode<vue.RendererNode, vue.RendererElement, {
281
- [key: string]: any;
282
- }>[]), unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
283
- slices?: unknown;
284
- components?: unknown;
285
- resolver?: unknown;
286
- context?: unknown;
287
- defaultComponent?: unknown;
288
- wrapper?: unknown;
289
- } & {
290
- slices: SliceZoneLike<SliceLike<string>>;
291
- } & {
292
- wrapper?: string | ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions> | undefined;
293
- context?: any;
294
- components?: SliceZoneComponents<SliceLike<string>, unknown> | undefined;
295
- resolver?: SliceZoneResolver<SliceLike<string>, unknown> | undefined;
296
- defaultComponent?: SliceComponentType<SliceLike<string>, unknown> | undefined;
297
- }>, {
298
- wrapper: string | ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions>;
299
- context: any;
300
- components: SliceZoneComponents<SliceLike<string>, unknown>;
301
- resolver: SliceZoneResolver<SliceLike<string>, unknown>;
302
- defaultComponent: SliceComponentType<SliceLike<string>, unknown>;
303
- }>;
304
246
  /**
305
247
  * Component to render a Prismic Slice Zone.
306
248
  *
@@ -357,12 +299,30 @@ declare type PrismicPluginComponentsOptions = {
357
299
  * @defaultValue `"img"`
358
300
  */
359
301
  imageComponent?: string | ConcreteComponent;
302
+ /**
303
+ * Default widths to use when rendering an image with `widths="defaults"`
304
+ *
305
+ * @remarks
306
+ * Consider configuring image widths within your content type definition and
307
+ * using `widths="auto"` instead to give content writers the ability to crop
308
+ * images in the editor.
309
+ * @defaultValue `@prismicio/helpers` defaults
310
+ */
311
+ imageWidthSrcSetDefaults?: number[];
312
+ /**
313
+ * Default pixel densities to use when rendering an image with
314
+ * `pixel-densities="defaults"`
315
+ *
316
+ * @defaultValue `@prismicio/helpers` defaults
317
+ */
318
+ imagePixelDensitySrcSetDefaults?: number[];
360
319
  /**
361
320
  * A component or a functional component rendered if a component mapping from
362
321
  * the `components` prop cannot be found.
363
322
  *
364
323
  * @remarks
365
324
  * Components will be rendered using the {@link SliceComponentProps} interface.
325
+ *
366
326
  * @defaultValue `null` when `process.env.NODE_ENV === "production"` else {@link TODOSliceComponent}
367
327
  */
368
328
  sliceZoneDefaultComponent?: SliceComponentType;
@@ -558,6 +518,23 @@ declare type PrismicPluginHelpers = {
558
518
  * `@prismicio/helpers` {@link asDate} function.
559
519
  */
560
520
  asDate: typeof asDate;
521
+ /**
522
+ * Returns the URL of an Image field with optional image transformations (via
523
+ * Imgix URL parameters). This is `@prismicio/helpers` {@link asImageSrc} function.
524
+ */
525
+ asImageSrc: typeof asImageSrc;
526
+ /**
527
+ * Creates a width-based `srcset` from an Image field with optional image
528
+ * transformations (via Imgix URL parameters). This is `@prismicio/helpers`
529
+ * {@link asImageWidthSrcSet} function.
530
+ */
531
+ asImageWidthSrcSet: typeof asImageWidthSrcSet;
532
+ /**
533
+ * Creates a pixel-density-based `srcset` from an Image field with optional
534
+ * image transformations (via Imgix URL parameters). This is
535
+ * `@prismicio/helpers` {@link asImagePixelDensitySrcSet} function.
536
+ */
537
+ asImagePixelDensitySrcSet: typeof asImagePixelDensitySrcSet;
561
538
  /**
562
539
  * Converts a document into a link field. This is `@prismicio/helpers`
563
540
  * {@link documentToLinkField} function.
@@ -620,6 +597,7 @@ declare type VueUseOptions<T> = {
620
597
  * @param options - {@link PrismicPluginOptions}
621
598
  *
622
599
  * @returns `@prismicio/vue` plugin instance {@link PrismicPlugin}
600
+ *
623
601
  * @see Prismic Official Vue.js documentation: {@link https://prismic.io/docs/technologies/vuejs}
624
602
  * @see Plugin repository: {@link https://github.com/prismicio/prismic-vue}
625
603
  */
@@ -684,17 +662,76 @@ declare type PrismicImageProps = {
684
662
  *
685
663
  * @remarks
686
664
  * HTML tag names and components will be rendered using the `img` tag
687
- * interface (`src` and `alt` attribute). Components will also receive an
688
- * additional `copyright` props.
665
+ * interface (`src`, `srcset`, and `alt` attribute). Components will also
666
+ * receive an additional `copyright` props.
689
667
  * @defaultValue The one provided to `@prismicio/vue` plugin if configured, `"img"` otherwise.
690
668
  */
691
669
  imageComponent?: string | ConcreteComponent;
692
670
  /**
693
- * A map of additional props to pass to the component used to render images
694
- * when using one.
671
+ * An object of Imgix URL API parameters.
672
+ *
673
+ * @see Imgix URL parameters reference: https://docs.imgix.com/apis/rendering
674
+ */
675
+ imgixParams?: Parameters<typeof asImageSrc>[1];
676
+ /**
677
+ * Adds an additional `srcset` attribute to the image following given widths.
678
+ *
679
+ * @remarks
680
+ * A special value of `"auto"` is accepted to automatically use image widths
681
+ * coming from the API.
682
+ * @remarks
683
+ * A special value of `"defaults"` is accepted to automatically use image
684
+ * widths coming from the plugin configuration.
685
+ * @remarks
686
+ * This prop is not compatible with the `pixelDensities` prop. When both are
687
+ * used the `pixelDensities` prop will be ignored.
695
688
  */
696
- imageComponentAdditionalProps?: Record<string, unknown>;
689
+ widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "auto" | "defaults";
690
+ /**
691
+ * Adds an additional `srcset` attribute to the image following giving pixel densities.
692
+ *
693
+ * @remarks
694
+ * A special value of `"defaults"` is accepted to automatically use image
695
+ * pixel densities coming from the plugin configuration.
696
+ * @remarks
697
+ * This prop is not compatible with the `widths` prop. When both are used, the
698
+ * `pixelDensities` prop will be ignored.
699
+ */
700
+ pixelDensities?: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
697
701
  };
702
+ /**
703
+ * Options for {@link usePrismicImage}.
704
+ */
705
+ declare type UsePrismicImageOptions = VueUseOptions<Omit<PrismicImageProps, "imageComponent">>;
706
+ /**
707
+ * Return type of {@link usePrismicImage}.
708
+ */
709
+ declare type UsePrismicImageReturnType = {
710
+ /**
711
+ * Resolved image `src` value.
712
+ */
713
+ src: ComputedRef<string | null>;
714
+ /**
715
+ * Resolved image `srcset` value.
716
+ */
717
+ srcset: ComputedRef<string | null>;
718
+ /**
719
+ * Resolved image `alt` value.
720
+ */
721
+ alt: ComputedRef<string | null>;
722
+ /**
723
+ * Resolved image `copyright` value.
724
+ */
725
+ copyright: ComputedRef<string | null>;
726
+ };
727
+ /**
728
+ * A low level composable that returns a resolved information about a Prismic image field.
729
+ *
730
+ * @param props - {@link UsePrismicImageOptions}
731
+ *
732
+ * @returns - Resolved image information {@link UsePrismicImageReturnType}
733
+ */
734
+ declare const usePrismicImage: (props: UsePrismicImageOptions) => UsePrismicImageReturnType;
698
735
  /**
699
736
  * Component to render a Prismic image field.
700
737
  *
@@ -718,6 +755,7 @@ declare type PrismicLinkProps = {
718
755
  * resolver parameter with `@prismicio/client`.
719
756
  *
720
757
  * @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
758
+ *
721
759
  * @see Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
722
760
  */
723
761
  linkResolver?: LinkResolverFunction;
@@ -870,6 +908,7 @@ declare type PrismicRichTextProps = {
870
908
  * resolver parameter with `@prismicio/client`.
871
909
  *
872
910
  * @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
911
+ *
873
912
  * @see Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
874
913
  */
875
914
  linkResolver?: LinkResolverFunction;
@@ -877,6 +916,7 @@ declare type PrismicRichTextProps = {
877
916
  * An HTML serializer to customize the way rich text fields are rendered.
878
917
  *
879
918
  * @defaultValue The HTML serializer provided to `@prismicio/vue` plugin if configured.
919
+ *
880
920
  * @see HTML serializer documentation {@link https://prismic.io/docs/core-concepts/html-serializer}
881
921
  */
882
922
  htmlSerializer?: HTMLFunctionSerializer | HTMLMapSerializer;
@@ -954,219 +994,395 @@ declare type ClientComposableReturnType<TData = unknown> = {
954
994
  *
955
995
  * @remarks
956
996
  * An additional `@prismicio/client` instance can be provided at `params.client`.
997
+ *
957
998
  * @typeParam TDocument - Type of Prismic documents returned
999
+ *
958
1000
  * @param params - Parameters to filter, sort, and paginate results
959
1001
  *
960
1002
  * @returns The composable payload {@link ClientComposableReturnType}
1003
+ *
961
1004
  * @see Underlying `@prismicio/client` method {@link Client.get}
962
1005
  */
963
- declare const usePrismicDocuments: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1006
+ declare const usePrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1007
+ signal?: {
1008
+ aborted: any;
1009
+ addEventListener: any;
1010
+ removeEventListener: any;
1011
+ dispatchEvent: any;
1012
+ onabort: any;
1013
+ } | undefined;
1014
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
964
1015
  /**
965
1016
  * A composable that queries content from the Prismic repository and returns
966
1017
  * only the first result, if any.
967
1018
  *
968
1019
  * @remarks
969
1020
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1021
+ *
970
1022
  * @typeParam TDocument - Type of the Prismic document returned
1023
+ *
971
1024
  * @param params - Parameters to filter, sort, and paginate results
972
1025
  *
973
1026
  * @returns The composable payload {@link ClientComposableReturnType}
1027
+ *
974
1028
  * @see Underlying `@prismicio/client` method {@link Client.getFirst}
975
1029
  */
976
- declare const useFirstPrismicDocument: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
1030
+ declare const useFirstPrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1031
+ signal?: {
1032
+ aborted: any;
1033
+ addEventListener: any;
1034
+ removeEventListener: any;
1035
+ dispatchEvent: any;
1036
+ onabort: any;
1037
+ } | undefined;
1038
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
977
1039
  /**
978
1040
  * A composable that queries a document from the Prismic repository with a specific ID.
979
1041
  *
980
1042
  * @remarks
981
1043
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1044
+ *
982
1045
  * @typeParam TDocument - Type of the Prismic document returned
1046
+ *
983
1047
  * @param id - ID of the document
984
1048
  * @param params - Parameters to filter, sort, and paginate results
985
1049
  *
986
1050
  * @returns The composable payload {@link ClientComposableReturnType}
1051
+ *
987
1052
  * @see Underlying `@prismicio/client` method {@link Client.getByID}
988
1053
  */
989
- declare const usePrismicDocumentByID: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(id: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
1054
+ declare const usePrismicDocumentByID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(id: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1055
+ signal?: {
1056
+ aborted: any;
1057
+ addEventListener: any;
1058
+ removeEventListener: any;
1059
+ dispatchEvent: any;
1060
+ onabort: any;
1061
+ } | undefined;
1062
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
990
1063
  /**
991
1064
  * A composable that queries documents from the Prismic repository with specific IDs.
992
1065
  *
993
1066
  * @remarks
994
1067
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1068
+ *
995
1069
  * @typeParam TDocument - Type of Prismic documents returned
1070
+ *
996
1071
  * @param ids - A list of document IDs
997
1072
  * @param params - Parameters to filter, sort, and paginate results
998
1073
  *
999
1074
  * @returns The composable payload {@link ClientComposableReturnType}
1075
+ *
1000
1076
  * @see Underlying `@prismicio/client` method {@link Client.getByIDs}
1001
1077
  */
1002
- declare const usePrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1078
+ declare const usePrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1079
+ signal?: {
1080
+ aborted: any;
1081
+ addEventListener: any;
1082
+ removeEventListener: any;
1083
+ dispatchEvent: any;
1084
+ onabort: any;
1085
+ } | undefined;
1086
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1003
1087
  /**
1004
1088
  * A composable that queries all documents from the Prismic repository with specific IDs.
1005
1089
  *
1006
1090
  * @remarks
1007
1091
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1092
+ *
1008
1093
  * @typeParam TDocument - Type of Prismic documents returned
1094
+ *
1009
1095
  * @param ids - A list of document IDs
1010
1096
  * @param params - Parameters to filter and sort results
1011
1097
  *
1012
1098
  * @returns The composable payload {@link ClientComposableReturnType}
1099
+ *
1013
1100
  * @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
1014
1101
  */
1015
- declare const useAllPrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1102
+ declare const useAllPrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1103
+ signal?: {
1104
+ aborted: any;
1105
+ addEventListener: any;
1106
+ removeEventListener: any;
1107
+ dispatchEvent: any;
1108
+ onabort: any;
1109
+ } | undefined;
1110
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1016
1111
  /**
1017
1112
  * A composable that queries a document from the Prismic repository with a
1018
1113
  * specific UID and Custom Type.
1019
1114
  *
1020
1115
  * @remarks
1021
1116
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1117
+ *
1022
1118
  * @typeParam TDocument - Type of the Prismic document returned
1119
+ *
1023
1120
  * @param documentType - The API ID of the document's Custom Type
1024
1121
  * @param uid - UID of the document
1025
1122
  * @param params - Parameters to filter, sort, and paginate results
1026
1123
  *
1027
1124
  * @returns The composable payload {@link ClientComposableReturnType}
1125
+ *
1028
1126
  * @see Underlying `@prismicio/client` method {@link Client.getByUID}
1029
1127
  */
1030
- declare const usePrismicDocumentByUID: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(documentType: string, uid: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
1128
+ declare const usePrismicDocumentByUID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, uid: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1129
+ signal?: {
1130
+ aborted: any;
1131
+ addEventListener: any;
1132
+ removeEventListener: any;
1133
+ dispatchEvent: any;
1134
+ onabort: any;
1135
+ } | undefined;
1136
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
1031
1137
  /**
1032
1138
  * A composable that queries documents from the Prismic repository with specific UIDs.
1033
1139
  *
1034
1140
  * @remarks
1035
1141
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1142
+ *
1036
1143
  * @typeParam TDocument - Type of Prismic documents returned
1144
+ *
1037
1145
  * @param documentType - The API ID of the document's Custom Type
1038
1146
  * @param uids - A list of document UIDs
1039
1147
  * @param params - Parameters to filter, sort, and paginate results
1040
1148
  *
1041
1149
  * @returns The composable payload {@link ClientComposableReturnType}
1150
+ *
1042
1151
  * @see Underlying `@prismicio/client` method {@link Client.getByIDs}
1043
1152
  */
1044
- declare const usePrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(documentType: string, uids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1153
+ declare const usePrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, uids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1154
+ signal?: {
1155
+ aborted: any;
1156
+ addEventListener: any;
1157
+ removeEventListener: any;
1158
+ dispatchEvent: any;
1159
+ onabort: any;
1160
+ } | undefined;
1161
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1045
1162
  /**
1046
1163
  * A composable that queries all documents from the Prismic repository with specific UIDs.
1047
1164
  *
1048
1165
  * @remarks
1049
1166
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1167
+ *
1050
1168
  * @typeParam TDocument - Type of Prismic documents returned
1169
+ *
1051
1170
  * @param documentType - The API ID of the document's Custom Type
1052
1171
  * @param uids - A list of document UIDs
1053
1172
  * @param params - Parameters to filter and sort results
1054
1173
  *
1055
1174
  * @returns The composable payload {@link ClientComposableReturnType}
1175
+ *
1056
1176
  * @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
1057
1177
  */
1058
- declare const useAllPrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(documentType: string, ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1178
+ declare const useAllPrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1179
+ signal?: {
1180
+ aborted: any;
1181
+ addEventListener: any;
1182
+ removeEventListener: any;
1183
+ dispatchEvent: any;
1184
+ onabort: any;
1185
+ } | undefined;
1186
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1059
1187
  /**
1060
1188
  * A composable that queries a singleton document from the Prismic repository
1061
1189
  * for a specific Custom Type.
1062
1190
  *
1063
1191
  * @remarks
1064
1192
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1193
+ *
1065
1194
  * @typeParam TDocument - Type of the Prismic document returned
1195
+ *
1066
1196
  * @param documentType - The API ID of the singleton Custom Type
1067
1197
  * @param params - Parameters to filter, sort, and paginate results
1068
1198
  *
1069
1199
  * @returns The composable payload {@link ClientComposableReturnType}
1200
+ *
1070
1201
  * @see Underlying `@prismicio/client` method {@link Client.getSingle}
1071
1202
  */
1072
- declare const useSinglePrismicDocument: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(documentType: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
1203
+ declare const useSinglePrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1204
+ signal?: {
1205
+ aborted: any;
1206
+ addEventListener: any;
1207
+ removeEventListener: any;
1208
+ dispatchEvent: any;
1209
+ onabort: any;
1210
+ } | undefined;
1211
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
1073
1212
  /**
1074
1213
  * A composable that queries documents from the Prismic repository for a
1075
1214
  * specific Custom Type.
1076
1215
  *
1077
1216
  * @remarks
1078
1217
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1218
+ *
1079
1219
  * @typeParam TDocument - Type of Prismic documents returned
1220
+ *
1080
1221
  * @param documentType - The API ID of the Custom Type
1081
1222
  * @param params - Parameters to filter, sort, and paginate results
1082
1223
  *
1083
1224
  * @returns The composable payload {@link ClientComposableReturnType}
1225
+ *
1084
1226
  * @see Underlying `@prismicio/client` method {@link Client.getByType}
1085
1227
  */
1086
- declare const usePrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(documentType: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1228
+ declare const usePrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1229
+ signal?: {
1230
+ aborted: any;
1231
+ addEventListener: any;
1232
+ removeEventListener: any;
1233
+ dispatchEvent: any;
1234
+ onabort: any;
1235
+ } | undefined;
1236
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1087
1237
  /**
1088
1238
  * A composable that queries all documents from the Prismic repository for a
1089
1239
  * specific Custom Type.
1090
1240
  *
1091
1241
  * @remarks
1092
1242
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1243
+ *
1093
1244
  * @typeParam TDocument - Type of Prismic documents returned
1245
+ *
1094
1246
  * @param documentType - The API ID of the Custom Type
1095
1247
  * @param params - Parameters to filter and sort results
1096
1248
  *
1097
1249
  * @returns The composable payload {@link ClientComposableReturnType}
1250
+ *
1098
1251
  * @see Underlying `@prismicio/client` method {@link Client.getAllByType}
1099
1252
  */
1100
- declare const useAllPrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(documentType: string, params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1253
+ declare const useAllPrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
1254
+ signal?: {
1255
+ aborted: any;
1256
+ addEventListener: any;
1257
+ removeEventListener: any;
1258
+ dispatchEvent: any;
1259
+ onabort: any;
1260
+ } | undefined;
1261
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1101
1262
  /**
1102
1263
  * A composable that queries documents from the Prismic repository with a specific tag.
1103
1264
  *
1104
1265
  * @remarks
1105
1266
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1267
+ *
1106
1268
  * @typeParam TDocument - Type of Prismic documents returned
1269
+ *
1107
1270
  * @param tag - The tag that must be included on a document
1108
1271
  * @param params - Parameters to filter, sort, and paginate results
1109
1272
  *
1110
1273
  * @returns The composable payload {@link ClientComposableReturnType}
1274
+ *
1111
1275
  * @see Underlying `@prismicio/client` method {@link Client.getByTag}
1112
1276
  */
1113
- declare const usePrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(tag: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1277
+ declare const usePrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1278
+ signal?: {
1279
+ aborted: any;
1280
+ addEventListener: any;
1281
+ removeEventListener: any;
1282
+ dispatchEvent: any;
1283
+ onabort: any;
1284
+ } | undefined;
1285
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1114
1286
  /**
1115
1287
  * A composable that queries all documents from the Prismic repository with a
1116
1288
  * specific tag.
1117
1289
  *
1118
1290
  * @remarks
1119
1291
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1292
+ *
1120
1293
  * @typeParam TDocument - Type of Prismic documents returned
1294
+ *
1121
1295
  * @param tag - The tag that must be included on a document
1122
1296
  * @param params - Parameters to filter and sort results
1123
1297
  *
1124
1298
  * @returns The composable payload {@link ClientComposableReturnType}
1299
+ *
1125
1300
  * @see Underlying `@prismicio/client` method {@link Client.getAllByTag}
1126
1301
  */
1127
- declare const useAllPrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(tag: string, params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1302
+ declare const useAllPrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
1303
+ signal?: {
1304
+ aborted: any;
1305
+ addEventListener: any;
1306
+ removeEventListener: any;
1307
+ dispatchEvent: any;
1308
+ onabort: any;
1309
+ } | undefined;
1310
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1128
1311
  /**
1129
1312
  * A composable that queries documents from the Prismic repository with specific
1130
1313
  * tags. A document must be tagged with all of the queried tags to be included.
1131
1314
  *
1132
1315
  * @remarks
1133
1316
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1317
+ *
1134
1318
  * @typeParam TDocument - Type of Prismic documents returned
1319
+ *
1135
1320
  * @param tags - A list of tags that must be included on a document
1136
1321
  * @param params - Parameters to filter, sort, and paginate results
1137
1322
  *
1138
1323
  * @returns The composable payload {@link ClientComposableReturnType}
1324
+ *
1139
1325
  * @see Underlying `@prismicio/client` method {@link Client.getByTags}
1140
1326
  */
1141
- declare const usePrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(tags: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1327
+ declare const usePrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1328
+ signal?: {
1329
+ aborted: any;
1330
+ addEventListener: any;
1331
+ removeEventListener: any;
1332
+ dispatchEvent: any;
1333
+ onabort: any;
1334
+ } | undefined;
1335
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1142
1336
  /**
1143
1337
  * A composable that queries all documents from the Prismic repository with
1144
1338
  * specific tags. A document must be tagged with all of the queried tags to be included.
1145
1339
  *
1146
1340
  * @remarks
1147
1341
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1342
+ *
1148
1343
  * @typeParam TDocument - Type of Prismic documents returned
1344
+ *
1149
1345
  * @param tags - A list of tags that must be included on a document
1150
1346
  * @param params - Parameters to filter and sort results
1151
1347
  *
1152
1348
  * @returns The composable payload {@link ClientComposableReturnType}
1349
+ *
1153
1350
  * @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
1154
1351
  */
1155
- declare const useAllPrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(tags: string[], params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1352
+ declare const useAllPrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
1353
+ signal?: {
1354
+ aborted: any;
1355
+ addEventListener: any;
1356
+ removeEventListener: any;
1357
+ dispatchEvent: any;
1358
+ onabort: any;
1359
+ } | undefined;
1360
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1156
1361
  /**
1157
1362
  * A composable that queries documents from the Prismic repository with specific
1158
1363
  * tags. A document must be tagged with at least one of the queried tags to be included.
1159
1364
  *
1160
1365
  * @remarks
1161
1366
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1367
+ *
1162
1368
  * @typeParam TDocument - Type of Prismic documents returned
1369
+ *
1163
1370
  * @param tags - A list of tags that must be included on a document
1164
1371
  * @param params - Parameters to filter, sort, and paginate results
1165
1372
  *
1166
1373
  * @returns The composable payload {@link ClientComposableReturnType}
1374
+ *
1167
1375
  * @see Underlying `@prismicio/client` method {@link Client.getByTags}
1168
1376
  */
1169
- declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(tags: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1377
+ declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
1378
+ signal?: {
1379
+ aborted: any;
1380
+ addEventListener: any;
1381
+ removeEventListener: any;
1382
+ dispatchEvent: any;
1383
+ onabort: any;
1384
+ } | undefined;
1385
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
1170
1386
  /**
1171
1387
  * A composable that queries all documents from the Prismic repository with
1172
1388
  * specific tags. A document must be tagged with at least one of the queried
@@ -1174,14 +1390,25 @@ declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<
1174
1390
  *
1175
1391
  * @remarks
1176
1392
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1393
+ *
1177
1394
  * @typeParam TDocument - Type of Prismic documents returned
1395
+ *
1178
1396
  * @param tags - A list of tags that must be included on a document
1179
1397
  * @param params - Parameters to filter and sort results
1180
1398
  *
1181
1399
  * @returns The composable payload {@link ClientComposableReturnType}
1400
+ *
1182
1401
  * @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
1183
1402
  */
1184
- declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(tags: string[], params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1403
+ declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
1404
+ signal?: {
1405
+ aborted: any;
1406
+ addEventListener: any;
1407
+ removeEventListener: any;
1408
+ dispatchEvent: any;
1409
+ onabort: any;
1410
+ } | undefined;
1411
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1185
1412
  /**
1186
1413
  * **IMPORTANT**: Avoid using `dangerouslyUseAllPrismicDocuments` as it may be
1187
1414
  * slower and require more resources than other composables. Prefer using other
@@ -1192,14 +1419,25 @@ declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocume
1192
1419
  *
1193
1420
  * @remarks
1194
1421
  * An additional `@prismicio/client` instance can be provided at `params.client`.
1422
+ *
1195
1423
  * @typeParam TDocument - Type of Prismic documents returned
1424
+ *
1196
1425
  * @param params - Parameters to filter and sort results
1197
1426
  *
1198
1427
  * @returns The composable payload {@link ClientComposableReturnType}
1428
+ *
1199
1429
  * @see Underlying `@prismicio/client` method {@link Client.getAll}
1200
1430
  */
1201
- declare const dangerouslyUseAllPrismicDocuments: <TDocument extends PrismicDocument<Record<string, _prismicio_types.AnyRegularField | _prismicio_types.GroupField<Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SliceZone<_prismicio_types.Slice<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>> | _prismicio_types.SharedSlice<string, _prismicio_types.SharedSliceVariation<string, Record<string, _prismicio_types.AnyRegularField>, Record<string, _prismicio_types.AnyRegularField>>>>>, string, string>>(params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
1431
+ declare const dangerouslyUseAllPrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
1202
1432
  limit?: number | undefined;
1433
+ } & {
1434
+ signal?: {
1435
+ aborted: any;
1436
+ addEventListener: any;
1437
+ removeEventListener: any;
1438
+ dispatchEvent: any;
1439
+ onabort: any;
1440
+ } | undefined;
1203
1441
  } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1204
1442
 
1205
1443
  /**
@@ -1220,4 +1458,4 @@ declare module "@vue/runtime-core" {
1220
1458
  }
1221
1459
  }
1222
1460
 
1223
- export { ClientComposableReturnType, DefineComponentSliceComponentProps, PrismicClientComposableState, PrismicEmbed, PrismicEmbedProps, PrismicImage, PrismicImageProps, PrismicLink, PrismicLinkProps, PrismicPlugin, PrismicPluginOptions, PrismicRichText, PrismicRichTextProps, PrismicText, PrismicTextProps, SliceComponentProps, SliceComponentType, SliceLike, SliceZone, SliceZoneComponents, SliceZoneImpl, SliceZoneLike, SliceZoneProps, SliceZoneResolver, TODOSliceComponent, UsePrismicLinkOptions, UsePrismicRichTextOptions, UsePrismicTextOptions, createPrismic, dangerouslyUseAllPrismicDocuments, defineSliceZoneComponents, getSliceComponentProps, prismicKey, useAllPrismicDocumentsByEveryTag, useAllPrismicDocumentsByIDs, useAllPrismicDocumentsBySomeTags, useAllPrismicDocumentsByTag, useAllPrismicDocumentsByType, useAllPrismicDocumentsByUIDs, useFirstPrismicDocument, usePrismic, usePrismicDocumentByID, usePrismicDocumentByUID, usePrismicDocuments, usePrismicDocumentsByEveryTag, usePrismicDocumentsByIDs, usePrismicDocumentsBySomeTags, usePrismicDocumentsByTag, usePrismicDocumentsByType, usePrismicDocumentsByUIDs, usePrismicLink, usePrismicRichText, usePrismicText, useSinglePrismicDocument };
1461
+ export { ClientComposableReturnType, DefineComponentSliceComponentProps, PrismicClientComposableState, PrismicEmbed, PrismicEmbedProps, PrismicImage, PrismicImageProps, PrismicLink, PrismicLinkProps, PrismicPlugin, PrismicPluginOptions, PrismicRichText, PrismicRichTextProps, PrismicText, PrismicTextProps, SliceComponentProps, SliceComponentType, SliceLike, SliceZone, SliceZoneComponents, SliceZoneLike, SliceZoneProps, SliceZoneResolver, TODOSliceComponent, UsePrismicImageOptions, UsePrismicLinkOptions, UsePrismicRichTextOptions, UsePrismicTextOptions, createPrismic, dangerouslyUseAllPrismicDocuments, defineSliceZoneComponents, getSliceComponentProps, prismicKey, useAllPrismicDocumentsByEveryTag, useAllPrismicDocumentsByIDs, useAllPrismicDocumentsBySomeTags, useAllPrismicDocumentsByTag, useAllPrismicDocumentsByType, useAllPrismicDocumentsByUIDs, useFirstPrismicDocument, usePrismic, usePrismicDocumentByID, usePrismicDocumentByUID, usePrismicDocuments, usePrismicDocumentsByEveryTag, usePrismicDocumentsByIDs, usePrismicDocumentsBySomeTags, usePrismicDocumentsByTag, usePrismicDocumentsByType, usePrismicDocumentsByUIDs, usePrismicImage, usePrismicLink, usePrismicRichText, usePrismicText, useSinglePrismicDocument };