import type { ConsoleRuntimeConfig, ConsoleRuntimeConfigInput } from './types'; /** * Resolve the runtime configuration every served console shares. * * The base-path suffix is the WHOLE two-segment mount: a base path merely * ending in its last segment is a foreign layout, and stripping one segment * would derive `/console` as the API. */ export declare function resolveConsoleRuntimeConfig(input: ConsoleRuntimeConfigInput): ConsoleRuntimeConfig; /** * Whether the API a console talks to is its OWN origin. Both the cookie scope * and cookie mode hang off it, and both break silently when it is false. */ export declare function isSameOriginApiUrl(apiUrl: string, origin: string): boolean; /** * The path the kit store's cookies are scoped to: the sub-path authup is * publicly served under, so the surfaces on the IdP origin share one session * and a host application at `/` using the kit's cookie names is left alone * (root-scoped cookies there would have each side rotate and revoke the * other's tokens). A cross-origin `apiUrl` (standalone hosting) says nothing * about this origin's layout, so it keeps the root path. */ export declare function resolveCookiePath(apiUrl: string, origin: string): string; //# sourceMappingURL=module.d.ts.map