UNPKG

@builder.io/sdk-vue

Version:
16 lines (15 loc) 707 B
import type { QueryObject } from '../../helpers/search/search'; /** * Receives a `URLSearchParams` object or a regular query object, and returns * the subset of query params that are relevant to the Builder SDK. * * Outputs a key-value object to be passed to `fetchOneEntry` or `fetchEntries` * functions as the `options` argument. * * NOTE: This function is generally not needed. Instead, it is recommended to use `isPreviewing()` * to check if the current page requires previewed content. * * @returns */ export declare const getBuilderSearchParams: (_options: QueryObject | URLSearchParams | undefined) => QueryObject; export declare const getBuilderSearchParamsFromWindow: () => QueryObject;