/** @internal */
declare const schemaType = "sanity.previewUrlSecret";
/** @internal */
declare const schemaIdPrefix = "sanity-preview-url-secret";
/** @internal */
declare const schemaIdSingleton: "sanity-preview-url-secret.share-access";
/** @internal */
declare const schemaTypeSingleton = "sanity.previewUrlShareAccess";
/** @internal */
declare const apiVersion = "2025-02-19";
/** @internal */
declare const urlSearchParamPreviewSecret = "sanity-preview-secret";
/** @internal */
declare const urlSearchParamPreviewPathname = "sanity-preview-pathname";
/** @internal */
declare const urlSearchParamPreviewPerspective = "sanity-preview-perspective";
/** @internal */
declare const urlSearchParamVercelProtectionBypass = "x-vercel-protection-bypass";
/** @internal */
declare const urlSearchParamVercelSetBypassCookie = "x-vercel-set-bypass-cookie";
/** @internal */
declare const isDev: boolean;
/**
 * updated within the hour, if it's older it'll create a new secret or return null
 * @internal
 */
declare const SECRET_TTL: number;
/** @internal */
declare const fetchSecretQuery: `*[_type == "sanity.previewUrlSecret" && secret == $secret && dateTime(_updatedAt) > dateTime(now()) - ${number}][0]{
    _id,
    _updatedAt,
    secret,
    studioUrl,
  }`;
/** @internal */
declare const fetchSharedAccessQuery: "*[_id == \"sanity-preview-url-secret.share-access\" && _type == \"sanity.previewUrlShareAccess\"][0].secret";
/** @internal */
declare const fetchSharedAccessSecretQuery: "*[_id == \"sanity-preview-url-secret.share-access\" && _type == \"sanity.previewUrlShareAccess\" && secret == $secret][0]{\n  secret,\n  studioUrl,\n}";
/** @internal */
declare const deleteExpiredSecretsQuery: `*[_type == "sanity.previewUrlSecret" && dateTime(_updatedAt) <= dateTime(now()) - ${number}]`;
/** @internal */
declare const vercelProtectionBypassSchemaType = "sanity.vercelProtectionBypass";
/** @internal */
declare const vercelProtectionBypassSchemaId: "sanity-preview-url-secret.vercel-protection-bypass";
/** @internal */
declare const fetchVercelProtectionBypassSecret: "*[_id == \"sanity-preview-url-secret.vercel-protection-bypass\" && _type == \"sanity.vercelProtectionBypass\"][0].secret";
/**
 * Used for tagging `client.fetch` queries
 * @internal
 */
declare const tag: "sanity.preview-url-secret";
/** @internal */
declare const perspectiveCookieName = "sanity-preview-perspective";
export { urlSearchParamPreviewSecret as _, fetchSharedAccessQuery as a, vercelProtectionBypassSchemaId as b, isDev as c, schemaIdSingleton as d, schemaType as f, urlSearchParamPreviewPerspective as g, urlSearchParamPreviewPathname as h, fetchSecretQuery as i, perspectiveCookieName as l, tag as m, apiVersion as n, fetchSharedAccessSecretQuery as o, schemaTypeSingleton as p, deleteExpiredSecretsQuery as r, fetchVercelProtectionBypassSecret as s, SECRET_TTL as t, schemaIdPrefix as u, urlSearchParamVercelProtectionBypass as v, vercelProtectionBypassSchemaType as x, urlSearchParamVercelSetBypassCookie as y };
//# sourceMappingURL=constants.d.ts.map