/** * @param {Record} config * @returns {(raw: import('../request.js').RawRequest) => Promise} */ export function createDeviceHandler(config: Record): (raw: import("../request.js").RawRequest) => Promise; /** * Build the device-approval API the host application drives from its own * verification page: look up the pending request by `user_code`, then * approve (binding the authenticated user) or deny it. * * @param {Record} config */ export function createDeviceApproval(config: Record): { /** * @param {string} userCode * @returns {Promise} */ getByUserCode(userCode: string): Promise; /** * @param {string} userCode * @param {{ subject: string }} approval */ approve(userCode: string, approval: { subject: string; }): Promise; /** * @param {string} userCode */ deny(userCode: string): Promise; };