Make apiDeclarations optional