// Code generated by ndpgen. DO NOT EDIT.
//
// This file contains wrapper functions for the extism/go-pdk package.
// For WASM builds, it provides type aliases and function wrappers that delegate
// to the real extism/go-pdk package with zero overhead.
//
//go:build wasip1

package pdk

import (
	extism "github.com/extism/go-pdk"
)

// Type aliases - zero overhead, full compatibility
{{- range .Types}}
type {{.Name}} = extism.{{.Name}}
{{- end}}

// Constants
{{- $prevType := ""}}
{{- range .Consts}}
{{- if ne .Type $prevType}}
{{- if ne $prevType ""}}
)
{{- end}}

const (
{{- end}}
	{{.Name}} = extism.{{.Name}}
{{- $prevType = .Type}}
{{- end}}
{{- if ne $prevType ""}}
)
{{- end}}

// Functions
{{- range .Functions}}

{{- if .Doc}}
// {{.Name}} {{firstSentence .Doc}}
{{- end}}
func {{.Name}}({{paramList .Params}}){{returnList .Returns}} {
{{- if .Returns}}
	return extism.{{.Name}}({{argList .Params}})
{{- else}}
	extism.{{.Name}}({{argList .Params}})
{{- end}}
}
{{- end}}
