/** * Return undefined if the issuerUri doesn't match the expected shape of a Keycloak issuerUri * * Example: * * `parseKeycloakIssuerUri("https://auth.my-company.com/auth/realms/myrealm")` returns: * { * origin: "https://auth.my-company.com", * realm: "myrealm", * kcHttpRelativePath: "/auth", * adminConsoleUrl: "https://auth.my-company.com/auth/admin/myrealm/console", * getAccountUrl: ({ thisAppDisplayName, backToAppFromAccountUrl }) => * `https://auth.my-company.com/auth/realms/myrealm/account?referrer=${thisAppDisplayName}&referrer_uri=${backToAppFromAccountUrl}` * } * */ export declare function parseKeycloakIssuerUri(issuerUri: string): undefined | { origin: string; realm: string; /** If defined starts with / and end with no `/` */ kcHttpRelativePath: string | undefined; adminConsoleUrl: string; adminConsoleUrl_master: string; getAccountUrl: (params: { clientId: string; backToAppFromAccountUrl: string; locale?: string; }) => string; };