In Bash you can export function definitions to other shell scripts that your script calls with
export -f function_name
For example you can try this simple example:
### `./script1`:
#!/bin/bash
myfun() {
echo "Hello!"
}
export -f myfun
./script2
### `./script2`:
#!/bin/bash
myfun
Then if you call `./script1` you will see the output _Hello!_.