export declare const zshCompletionScript = "#compdef httpyac\n\n# Zsh completion script for httpyac CLI\n# https://httpyac.github.io/\n# Generated by: httpyac shell-init zsh\n\n_httpyac_output_formats() {\n local formats=(\n 'short:Short output format'\n 'body:Response body only'\n 'headers:Response headers only'\n 'response:Full response'\n 'exchange:Request and response'\n 'timings:Timing information'\n 'none:No output'\n )\n _describe -t output-formats 'output format' formats\n}\n\n_httpyac_repeat_modes() {\n local modes=(\n 'sequential:Run requests sequentially'\n 'parallel:Run requests in parallel'\n )\n _describe -t repeat-modes 'repeat mode' modes\n}\n\n_httpyac_filter_values() {\n local filters=(\n 'only-failed:Show only failed requests'\n )\n _describe -t filters 'filter' filters\n}\n\n_httpyac_oauth2_flows() {\n local flows=(\n 'client_credentials:Client credentials flow'\n 'authorization_code:Authorization code flow'\n 'device_code:Device code flow'\n 'password:Password flow'\n 'implicit:Implicit flow'\n 'hybrid:Hybrid flow'\n )\n _describe -t oauth2-flows 'OAuth2 flow' flows\n}\n\n_httpyac_extract_region_names() {\n local http_files=()\n local names=()\n local line\n\n # Find .http files from the command line arguments\n for word in \"${words[@]}\"; do\n if [[ \"$word\" == *.http || \"$word\" == *.rest ]]; then\n if [[ -f \"$word\" ]]; then\n http_files+=(\"$word\")\n fi\n fi\n done\n\n # If no files found in args, try to find in current directory\n if (( ${#http_files[@]} == 0 )); then\n http_files=(*.http(N) *.rest(N))\n fi\n\n # Extract region names from files\n for file in \"${http_files[@]}\"; do\n if [[ -f \"$file\" ]]; then\n while IFS= read -r line; do\n # Match ### delimiter with title\n if [[ \"$line\" =~ ^[[:space:]]*#{3,}[[:space:]]*(.+)$ ]]; then\n local title=\"${match[1]}\"\n title=\"${title##[[:space:]]}\"\n title=\"${title%%[[:space:]]}\"\n if [[ -n \"$title\" ]]; then\n names+=(\"$title\")\n fi\n fi\n # Match @name metadata\n if [[ \"$line\" =~ ^[[:space:]]*#[[:space:]]*@name[[:space:]]+([^[:space:]]+) ]]; then\n names+=(\"${match[1]}\")\n fi\n done < \"$file\"\n fi\n done\n\n if (( ${#names[@]} > 0 )); then\n local unique_names=(${(u)names[@]})\n _describe -t region-names 'HTTP region name' unique_names\n fi\n}\n\n_httpyac_send() {\n _arguments -s -S \\\n '(-a --all)'{-a,--all}'[Execute all requests in a file]' \\\n '*'{-e,--env}'[List of environments]:environment:' \\\n '--bail[Stop execution on test failure]' \\\n '--filter[Filter output]:filter:_httpyac_filter_values' \\\n '--insecure[Allow insecure SSL connections]' \\\n '(-i --interactive)'{-i,--interactive}'[Interactive mode]' \\\n '--json[JSON output format]' \\\n '--junit[JUnit XML output format]' \\\n '(-l --line)'{-l,--line}'[Line number of the HTTP request]:line number:' \\\n '(-n --name)'{-n,--name}'[Name of the HTTP region]:name:_httpyac_extract_region_names' \\\n '--no-color[Disable colored output]' \\\n '(-o --output)'{-o,--output}'[Output format]:output format:_httpyac_output_formats' \\\n '--output-failed[Output format for failed responses]:output format:_httpyac_output_formats' \\\n '--raw[Do not format response body]' \\\n '(-q --quiet)'{-q,--quiet}'[Quiet mode]' \\\n '--repeat[Number of times to repeat]:count:' \\\n '--repeat-mode[Repeat mode]:mode:_httpyac_repeat_modes' \\\n '--parallel[Number of parallel requests]:count:' \\\n '(-s --silent)'{-s,--silent}'[Only log requests]' \\\n '*'{-t,--tag}'[Tags to execute]:tag:' \\\n '--timeout[Request timeout in milliseconds]:timeout:' \\\n '*--var[Variables]:variable:' \\\n '(-v --verbose)'{-v,--verbose}'[Verbose output]' \\\n '*:HTTP file:_files -g \"*.http *.rest\"'\n}\n\n_httpyac_oauth2() {\n _arguments -s -S \\\n '(-f --flow)'{-f,--flow}'[OAuth2 flow type]:flow:_httpyac_oauth2_flows' \\\n '--prefix[Variable prefix]:prefix:' \\\n '*'{-e,--env}'[List of environments]:environment:' \\\n '(-o --output)'{-o,--output}'[Output format]:output format:_httpyac_output_formats' \\\n '*--var[Variables]:variable:' \\\n '*:HTTP file:_files -g \"*.http *.rest\"'\n}\n\n_httpyac_shell_init() {\n _arguments -s -S \\\n '1:shell:(zsh bash)'\n}\n\n_httpyac() {\n local curcontext=\"$curcontext\" state line\n typeset -A opt_args\n\n _arguments -C \\\n '1: :->command' \\\n '*::arg:->args'\n\n case $state in\n command)\n local commands=(\n 'send:Execute HTTP requests (default)'\n 'oauth2:Generate OAuth2 token'\n 'shell-init:Generate shell completion script'\n )\n _describe -t commands 'httpyac command' commands\n _files -g \"*.http *.rest\"\n ;;\n args)\n case ${line[1]} in\n send)\n _httpyac_send\n ;;\n oauth2)\n _httpyac_oauth2\n ;;\n shell-init)\n _httpyac_shell_init\n ;;\n *)\n _httpyac_send\n ;;\n esac\n ;;\n esac\n}\n\n# Register completion function if compdef is available\n# When loaded via fpath, the #compdef directive handles this automatically\nif type compdef &>/dev/null; then\n compdef _httpyac httpyac\nfi\n";