import { _ as ResolvedHandlerUrls, u as HandlerUrlOptions, y as hexclaveAppInternalsSymbol } from "./common-BDyEKSM6.js"; import { Result } from "@hexclave/shared/dist/utils/results"; import { InternalSession } from "@hexclave/shared/dist/sessions"; import { Store } from "@hexclave/shared/dist/utils/stores"; import { AsyncCache } from "@hexclave/shared/dist/utils/caches"; //#region src/lib/hexclave-app/apps/implementations/common.d.ts declare const clientVersion = "STACK_COMPILE_TIME_CLIENT_PACKAGE_VERSION_SENTINEL"; declare const createCache: (fetcher: (dependencies: D) => Promise) => AsyncCache>; declare const createCacheBySession: (fetcher: (session: InternalSession, extraDependencies: D) => Promise) => AsyncCache<[InternalSession, ...D], Result>; type AppLike = { [hexclaveAppInternalsSymbol]: { getConstructorOptions: () => any; }; }; declare function resolveConstructorOptions(options: T): T & { inheritsFrom?: undefined; }; declare function getUrls(partial: HandlerUrlOptions, options: { projectId: string; }): ResolvedHandlerUrls; declare function getDefaultProjectId(): any; declare function getDefaultPublishableClientKey(): any; declare function getDefaultSecretServerKey(): any; declare function getDefaultSuperSecretAdminKey(): any; declare function getDefaultExtraRequestHeaders(): any; /** * Returns the base URL for the Stack API. * * The URL can be specified in several ways, in order of precedence: * 1. Directly through userSpecifiedBaseUrl parameter as string or browser/server object * 2. Through environment variables: * - Browser: NEXT_PUBLIC_HEXCLAVE_API_URL_BROWSER/VITE_HEXCLAVE_API_URL_BROWSER * - Server: HEXCLAVE_API_URL_SERVER * - Default: HEXCLAVE_API_URL * 3. Default base URL if none of the above are specified * * The function also ensures the URL doesn't end with a trailing slash * by removing it if present. * * @param userSpecifiedBaseUrl - Optional URL override as string or {browser, server} object * @returns The configured base URL without trailing slash */ declare function getBaseUrl(userSpecifiedBaseUrl: string | { browser: string; server: string; } | undefined): any; declare const defaultBaseUrl = "https://api.hexclave.com"; declare const defaultAnalyticsBaseUrl = "https://r.hexclave.com"; declare function getAnalyticsBaseUrl(regularBaseUrl: string): string; declare function resolveApiUrls(userExplicitBaseUrl: string | { browser: string; server: string; } | undefined): () => string[]; type TokenObject = { accessToken: string | null; refreshToken: string | null; }; declare function createEmptyTokenStore(): Store; //#endregion export { resolveConstructorOptions as _, createEmptyTokenStore as a, getAnalyticsBaseUrl as c, getDefaultProjectId as d, getDefaultPublishableClientKey as f, resolveApiUrls as g, getUrls as h, createCacheBySession as i, getBaseUrl as l, getDefaultSuperSecretAdminKey as m, clientVersion as n, defaultAnalyticsBaseUrl as o, getDefaultSecretServerKey as p, createCache as r, defaultBaseUrl as s, TokenObject as t, getDefaultExtraRequestHeaders as u }; //# sourceMappingURL=common-CRu2FsO9.d.ts.map