import { getRoutePath, navigateTo } from './utils'; /** * LoginRouting interface. * * @remarks * A utility to navigate to a sub route of the login micro frontend without needing to know the full path in advance. * * @example Import the utility into any component or logic you wish to invoke from. * ```ts * import { LoginRouting } from '@genesislcap/foundation-login'; * ... * @LoginRouting private loginRouting: LoginRouting; * ... * this.loginRouting.navigateTo('logout'); * ``` * * @public */ export interface LoginRouting { /** {@inheritDoc getRoutePath} */ getRoutePath: typeof getRoutePath; /** {@inheritDoc navigateTo} */ navigateTo: typeof navigateTo; } /** * Default LoginRouting. * * @public */ export declare class DefaultLoginRouting implements LoginRouting { /** @internal */ private config; /** {@inheritDoc LoginRouting.getRoutePath} */ getRoutePath(route: string): string; /** {@inheritDoc LoginRouting.navigateTo} */ navigateTo(route: string): void; } /** * LoginRouting DI key. * * @privateRemarks * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name. * * @internal */ export declare const LoginRouting: import("@microsoft/fast-foundation").InterfaceSymbol; /** * Gets LoginRouting from the DI container. * * @remarks * A utility method for host applications that are not using decorators or the DI container. * * @example * ```ts * import { getloginRouting } from '@genesislcap/foundation-login'; * ... * private loginRouting = getLoginRouting(); * ... * this.loginRouting.navigateTo('logout'); * ``` * * @public */ export declare function getLoginRouting(): LoginRouting; //# sourceMappingURL=routing.d.ts.map