{{#if routeInterfaceRelativePath }}import {
    {{#if hasBody}} {{{ bodyInterface }}}, {{/if}}
    {{#if hasQuery}} {{{ queryInterface }}}, {{/if}}
    {{#if hasPathParams}} {{{ pathParamsInterface }}}, {{/if}}
    {{{ routeSuccessInterface }}}    
} from '{{{ routeInterfaceRelativePath }}}';{{/if}}
import { RequestError, RequestSuccess } from '{{{ requestTypeRelativePath }}}';

export type {{{ functionInterfaceName }}} = ({{#ifOr hasBody hasQuery hasPathParams}}params: {
    {{#if hasBody}} body: {{{ bodyInterface }}}; {{/if}}
    {{#if hasQuery}} query: {{{ queryInterface }}}; {{/if}}
    {{#if hasPathParams}} pathParams: {{{ pathParamsInterface }}}; {{/if}}
}{{/ifOr}}) => Promise<RequestSuccess<{{#if routeSuccessInterface}}{{{ routeSuccessInterface }}}{{/if}}{{#ifNot routeSuccessInterface}}void{{/ifNot}}> | RequestError>;
