/** * `login "device-code"` engine: RFC 8628 device authorization — request a * user code, show the verification URL, poll the token endpoint until the * grant completes, then project / enrich the credentials. */ import type { CompiledDeviceCodeLogin } from "@oh-my-pi/pi-catalog/compat/types"; import type { OAuthController, OAuthCredentials } from "../oauth/types.js"; /** Builds the login function for one `login "device-code"` rule. */ export declare function createDeviceCodeLogin(rule: CompiledDeviceCodeLogin, provider: string): (ctrl: OAuthController) => Promise;