package screens

import (
	tea "charm.land/bubbletea/v2"
	"github.com/charmbracelet/bubbles/key"
)

type Screen interface {
	Init() tea.Cmd
	Update(tea.Msg) (Screen, tea.Cmd)
	View(width, height int) string
	Title() string
	KeyBindings() []key.Binding
}

type KeyCapturer interface {
	CapturesKey(tea.KeyPressMsg) bool
}
