---
source: crates/alef-backend-gleam/tests/snapshot_test.rs
expression: "&file.content"
---
// Generated by alef. Do not edit by hand.

import gleam/option.{type Option}

/// A demo configuration struct.
pub type Config {
  Config(
    value: Int,
    label: String,
    tag: Option(Option(String))
  )
}

/// Processing status.
pub type Status {
  Active
  Inactive
}

/// Errors emitted by demo operations.
pub type DemoError {
  InvalidInput
  ProcessingFailed
}

/// Process input and return a result.
@external(erlang, "Elixir.Demo.Native", "process")
pub fn process(input: String, count: Int) -> Result(String, DemoError)
