+/* Looking up an entry in the dictionary */
+dict_entry_t *
+dict_lookup (dict_t *dict,
+ const char *word);
+
+typedef bool_t
+(*dict_entry_predicate_t) (dict_entry_t entry);
+
+int
+dict_count (dict_t *dict,
+ dict_entry_predicate_t predicate);
+
+/* Querying a dictionary entry. The dict interface uses 1 bit.
+ * All of the remaining bits are available for application use.
+ */
+#define DICT_ENTRY_FLAG_IS_WORD (1<<0)
+
+#define DICT_ENTRY_IS_WORD(entry) ((entry) && ((*entry) & DICT_ENTRY_FLAG_IS_WORD))
+
+/* Printing the dictionary */
+int
+dict_print (dict_t *dict);
+
+int
+dict_print_by_length (dict_t *dict);
+
+int
+dict_print_if (dict_t *dict,
+ dict_entry_predicate_t predicate);
+
+int
+dict_print_by_length_if (dict_t *dict,
+ dict_entry_predicate_t predicate);
+
+/* More general callback-based iteration of all entries */
+typedef void (* dict_action_t) (void *closure, char *word, dict_entry_t *entry);
+
+int
+dict_for_each (dict_t *dict,
+ dict_action_t action,
+ void *closure);
+
+int
+dict_for_each_by_length (dict_t *dict,
+ dict_action_t action,
+ void *closure);
+
+int
+dict_for_each_if (dict_t *dict,
+ dict_action_t action,
+ void *closure,
+ dict_entry_predicate_t predicate);
+
+int
+dict_for_each_by_length_if (dict_t *dict,
+ dict_action_t action,
+ void *closure,
+ dict_entry_predicate_t predicate);
+
+/* Character-by-character perusal of the dictionary */
+dict_cursor_t
+dict_root (dict_t *dict);
+
+dict_cursor_t
+dict_cursor_next (dict_cursor_t cursor,
+ char next);
+
+dict_entry_t *
+dict_cursor_resolve (dict_cursor_t cursor);
+
+#define DICT_CURSOR_NIL NULL