import { AuthProviderSettings } from '../types'; import { ServerAuth } from '@plitzi/sdk-shared'; export type ResolvedAuthSettings = { provider: string; settings: AuthProviderSettings; }; /** * One provider for the page, from the two places that can name it: what the space declares, and what the server that * rendered it serves (`server.auth`). * * The space wins, setting by setting — an empty value is one nobody filled in, as the builder's settings leave it. * A space that names a different provider than the server's ignores the server altogether: that description is of * another backend, and a hint cookie or an endpoint borrowed from it would be read against the wrong one. */ export declare const resolveAuthSettings: (declaredProvider: string | undefined, declared: AuthProviderSettings, server: ServerAuth | undefined) => ResolvedAuthSettings;