/** * Completion page served to the OAuth login window after the identity provider * redirects back to the local callback route. * @module @anht3889/dsh-mcp-mgmt-bundle/manager/oauth-page */ /** * Message channel the login window uses to tell the Settings section that * authorization finished. `@anht3889/dsh-mcp-mgmt-bundle` * holds the reading half; a client bundle cannot import this package, so both * sides spell the literal. */ export declare const OAUTH_MESSAGE_SOURCE = "dsh-mcp-management/oauth"; /** Outcome of one authorization-code exchange, as the login window reports it. */ export type OAuthCompletion = { ok: true; serverId: string; } | { ok: false; error: string; }; /** * Render the login window's final page. * * The page posts {@link OAUTH_MESSAGE_SOURCE} to its opener so the Settings * section refreshes without waiting for its poll interval, then closes itself. * A window the operator opened manually has no opener and cannot self-close, so * the page also states the outcome and offers a close button. * * @param completion - the exchange outcome to report. * @returns a standalone HTML document. */ export declare function renderOAuthCompletionPage(completion: OAuthCompletion): string;