#pragma once

#include <stdbool.h>

/**
 * Configures the next-photo button GPIO (CONFIG_FRAME_NEXT_BUTTON_GPIO,
 * active-low with internal pull-up) and arms it as a deep-sleep wakeup
 * source. Call once, early in app_main(), before the device might enter
 * deep sleep.
 *
 * A no-op if CONFIG_FRAME_NEXT_BUTTON_GPIO is negative (button disabled).
 */
void next_button_init(void);

/**
 * Returns whether the next-photo button is currently held, debounced with
 * a couple of short re-checks to reject noise. No long hold-to-confirm
 * gate -- advancing a photo is low-stakes and should feel immediate, so
 * this returns right away either way.
 */
bool next_button_check(void);
